Template Element (Site)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Specifies, in a WebTemp*.xml file, a site definition that can be used to create Web sites within the deployment.


<Template
  ID = "Text"
  Name = "Text"
  SetupPath = "Text">
</Template>

Attribute

Description

ID

Required Integer. Specifies the ID of the site definition. To avoid conflict with IDs that are natively used in Microsoft SharePoint Foundation, use IDs with values greater than 10,000 when you create custom site definitions.

Name

Required Text. Contains the name of the site type, such as STS.

SetupPath

Optional Text. Specifies the relative path in the setup directory that contains files used in the site definition, for example, SetupPath="global".

Minimum: 0

Maximum: Unbounded

Show:
© 2014 Microsoft