Partager via


Configurations Element

The Configurations element contains the configurations of lists and modules that make up a site template.

Syntax

<Configurations>
   <Configuration>
   </Configuration>
</Configurations>

Element Relationships

Parent Elements Child Elements
Project Configuration

Remarks

The Configurations element is used within the ONET.XML file to specify configurations of lists that are defined within ONET.XML. See the Configuration element for more information.

Example

The following example from ONET.XML specifies the lists and modules used in the site template.

<Configurations>
   <Configuration ID="-1" Name="NewWeb"/>
   <Configuration ID="0" Name="Default">
      <Lists>
         <List Title="Shared Documents" Url="Shared Documents"
            QuickLaunchUrl="Shared Documents/Forms/AllItems.aspx" Type="101" />
         <List Title="General Discussion" Url="Lists/General Discussion"
            QuickLaunchUrl="Lists/General Discussion/AllItems.aspx" Type="108" />
         <List Title="Announcements" Type="104" Url="Lists/Announcements" />
         <List Title="Links" Type="103" Url="Lists/Links" />
         <List Title="Contacts"  Url="Lists/Contacts"
            QuickLaunchUrl="Lists/Contacts/AllItems.aspx" Type="105" />
         <List Title="Events" Type="106" Url="Lists/Events" />
         <List Title="Tasks"  Url="Lists/Tasks" QuickLaunchUrl="Lists/Tasks/AllItems.aspx"
            Type="107" />
         <List Title="Site Template Catalog" Type="111" Url="_catalogs/wt" RootWebOnly="TRUE" />
         <List Title="Web Part Catalog" Type="113" Url="_catalogs/wp" RootWebOnly="TRUE" />
         <List Title="List Template Catalog" Type="114" Url="_catalogs/lt" RootWebOnly="TRUE" />
      </Lists>
      <Modules>
         <Module Name="Default"/>
         <Module Name="WebPartPopulation"/>
      </Modules>
   </Configuration>
   <Configuration ID="1" Name="Blank">
      <Lists>
         <List Title="Site Template Catalog" Type="111" Url="_catalogs/wt" RootWebOnly="TRUE" />
         <List Title="Web Part Catalog" Type="113" Url="_catalogs/wp" RootWebOnly="TRUE" />
          <List Title="List Template Catalog" Type="114" Url="_catalogs/lt" RootWebOnly="TRUE" />
       </Lists>
       <Modules>
          <Module Name="DefaultBlank"/>
          <Module Name="WebPartPopulation"/>
       </Modules>
   </Configuration>
   <Configuration ID="2" Name="DWS">
      <Lists>
         <List Title="Shared Documents" Type="101" />
         <List Title="General Discussion" Url="Lists/General Discussion"
            QuickLaunchUrl="Lists/General Discussion/AllItems.aspx" Type="108" />
         <List Title="Announcements" Type="104" Url="Lists/Announcements" />
         <List Title="Contacts" Url="Lists/Contacts" QuickLaunchUrl="Lists/Contacts/AllItems.aspx"
            Type="105" />
         <List Title="Links" Type="103" Url="Lists/Links" />
         <List Title="Events" Url="Lists/Events" QuickLaunchUrl="Lists/Events/AllItems.aspx"
            Type="106" />
         <List Title="Tasks" Type="107" />
         <List Title="Site Template Catalog" Type="111" Url="_catalogs/wt" RootWebOnly="TRUE" />
         <List Title="Web Part Catalog" Type="113" Url="_catalogs/wp" RootWebOnly="TRUE" />
         <List Title="List Template Catalog" Type="114" Url="_catalogs/lt" RootWebOnly="TRUE" />
      </Lists>
      <Modules>
         <Module Name="DWS"/>
         <Module Name="WebPartPopulation"/>
      </Modules>
   </Configuration>
</Configurations>