Elements (Web Template)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

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

Definition

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

<WebTemplate ...>

</Elements>

Elements and attributes

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="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>

See also