Elements (Web Template)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

Provides a parent for the WebTemplate element in an elements.xml file in a web template WSP file.

Elements (Web Template)
  WebTemplate Element (Web Template)
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <WebTemplate ...>
</Elements>

Complex

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child elements

Element

Description

WebTemplate Element (Web Template)

Provides configuration data for a web template.

Parent elements

None

The elements.xml file is itself referenced in the ElementManifests section of a feature.xml file that is also part of the WSP file. When the feature is activated for a site collection, the web template becomes available for creating new websites within the collection. The ElementManifests section also identifies an Onet.xml file that contains additional details of the web template that are not specified in the WebTemplate child element.

The following is an example of an Elements element.


<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <WebTemplate 
    AdjustHijriDays="0" 
    AlternateCssUrl="" 
    AlternateHeader="" 
    BaseTemplateID="9" 
    BaseTemplateName="BLOG" 
    BaseConfigurationID="0" 
    CalendarType="1" 
    Collation="25" 
    ContainsDefaultLists="TRUE" 
    CustomizedCssFiles="" 
    CustomJSUrl="" 
    Description="A 4th Generation Blog Site." 
    ExcludeFromOfflineClient="FALSE" 
    Locale="1033" 
    Name="BlogIV" 
    ParserEnabled="TRUE" 
    PortalName="" 
    PortalUrl="" 
    PresenceEnabled="TRUE" 
    ProductVersion="4" 
    QuickLaunchEnabled="TRUE" 
    Subweb="TRUE" 
    SyndicationEnabled="TRUE" 
    Time24="FALSE" 
    TimeZone="13" 
    Title="BlogIV" 
    TreeViewEnabled="FALSE" 
    UIVersionConfigurationEnabled="FALSE" />
</Elements>
Show: