Share via


Elements (Web Template)

Applies to: SharePoint Foundation 2010

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="https://schemas.microsoft.com/sharepoint/">
  <WebTemplate ...>
</Elements>

Complex

Attributes and Elements

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

Remarks

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.

Example

The following is an example of an Elements element.

<Elements xmlns="https://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>

See Also

Concepts

Site Types: WebTemplates and Site Definitions