CAPI Subsite

From ADF Docs
Revision as of 16:15, 22 November 2009 by Renee.mckechnie (talk | contribs) (Created page with '==Overview== The subsite component allows you create subsites. ==Example Usage== <cfscript> // build structure with subsite data tmp = structNew(); tmp["name"] = "testi…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

The subsite component allows you create subsites.

Example Usage

<cfscript>
 // 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);
</cfscript>
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.