To insert a site, your insertXml must include the following properties:
TYPE
|
The type of item to insert. To insert a site, specify SITE. |
TITLE
|
The title to use for the site. |
URL
|
The parent relative URL of the site. |
You must then specify either (SITEID and SITECOLLECTIONURL) or (INSERTFROMPATH and SITEURL):
INSERTFROMPATH
|
To insert a site by path, set this to TRUE. |
SITECOLLETIONURL
|
The absolute URL of the site collection into which you want to insert the site. |
SITEID
|
The GUID of the parent site. |
SITEURL
|
The absolute URL of the parent site. |
The following properties are optional:
DESCRIPTION
|
A description of the site. |
For example, the value of your insertXML action parameter might look like this:
<insertXML>
<insert>
<reference>TEST_SITE</reference>
<property name="TYPE" value="SITE"/>
<property name="TITLE" value="My New Site"/>
<property name="URL" value="MyNewSite"/>
<property name="SITECOLLECTIONURL" value="http://sharepoint/SiteCollection/"/>
<property name="SITEID" value="AF1F1E11526FFA45"/>
<property name="DESCRIPTION" value="My Inserted Site"/>
</insert>
</insertXML>
To insert a site by path, your XML might look like this:
<insertXML>
<insert>
<reference>TEST_SITE</reference>
<property name="TYPE" value="SITE"/>
<property name="TITLE" value="My New Site"/>
<property name="URL" value="MyNewSite"/>
<property name="SITEURL" value="http://sharepoint/SiteCollection/"/>
<property name="INSERTFROMPATH" value="TRUE"/>
<property name="DESCRIPTION" value="My Inserted Site"/>
</insert>
</insertXML>
|
|