Share via


SiteProvision Method

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Requests that Windows SharePoint Services add the default set of lists to an existing Web site. The set of SharePoint lists is specified in the Onet.xml file, which resides on the Web server running Windows SharePoint Services.

<Method ID="Text">
  <SetVar Name="Cmd">SiteProvision</SetVar>
  <SetVar Name="CreateLists">[True|False]</SetVar>
  <SetVar Name="SiteTemplate">Text</SetVar>
</Method>

Parameters

Parameter

Description

ID = "Text"

Application-specific string. In an HTML editor compatible with Microsoft Windows SharePoint Services, such as Microsoft Office SharePoint Designer 2007, the string provides the sequence number and name of the method.

Name = "Cmd"

Must be set to SiteProvision.

Name = "CreateLists"

Boolean. TRUE to create the default types of SharePoint lists as specified in the Onet.xml file residing on the server; otherwise, FALSE.

Name = "SiteTemplate"

Text. Specifies the site definition configuration to use to instantiate the site. If not specified, by default Windows SharePoint Services creates the site by using the standard Team Site configuration. The following site definition configurations are included by default in an installation of Windows SharePoint Services.

  • STS#0   Team Site

  • STS#1   Blank Site

  • STS#2   Document Workspace

  • MPS#0   Basic Meeting Workspace

  • MPS#1   Blank Meeting Workspace

  • MPS#2   Decision Meeting Workspace

  • MPS#3   Social Meeting Workspace

  • MPS#4   Multipage Meeting Workspace

  • WIKI#0   Wiki

  • BLOG#0   Blog

Decoded

<ows:Batch OnError="Return">
  <Method ID="0,SiteProvision">
    <SetVar Name="Cmd">SiteProvision</SetVar>
    <SetVar Name="CreateLists">True</SetVar>
    <SetVar Name="SiteTemplate">STS#0</SetVar>
  </Method>
</ows:Batch>