CAPI Subsite

From ADF Docs
Jump to: navigation, search


The subsite component allows you create subsites.

Example Usage

 // build structure with subsite data 
 tmp = structNew();
 tmp["name"] = "testing";
 tmp["displayName"] = "nice";
 tmp["description"] = "This is the new 
 // build the object for subsites
 csSubsiteObj = server.ADF.getBean("CSSubsite_1_0");	
 // call the subsite create method 
 results = csSubsiteObj.createSubsite(tmp, 1);
Note: the second attribute to the "createSubsite()" method is the parentSubsiteID.
It essentially, will be the place where the new subsite is created.

Return Data

The method will return true/false depending on whether or not the subsite was created successfully.