Elements (Web Template)
Collapse the table of content
Expand the table of content

Elements (Web Template)

Last modified: October 13, 2010

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="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:
© 2016 Microsoft