This documentation is archived and is not being maintained.

Module Element

SharePoint 2003

The Module element specifies a file or collection of files and a location where the files are installed during site creation. If the file is a Web Part Page, the module definition can specify which Web Parts should be included on the page.


  List = "Integer"
  Name = "Text"
  Path = "Text"
  RootWebOnly = "TRUE" | "FALSE"
  Url = "Text"


ListOptional Integer. Specifies the type of list, which is defined within ONET.XML.
NameRequired Text. Contains the name of the module.
PathOptional Text. Contains the URL for the module.
RootWebOnlyOptional Boolean. TRUE if the files specified in the module are installed only in the top-level Web site of the site collection.
UrlOptional Text. Specifies the URL of the folder in which to place the files when a site is instantiated.

Element Relationships

Parent ElementsChild Elements
Modules File


The following example from ONET.XML defines the views and files to include within a module.

<Module Name="Default" Url="" Path="">
   <File Url="default.aspx" NavBarHome="True">
      <View List="104" BaseViewID="0" WebPartZoneID="Left"/>
      <View List="106" BaseViewID="0" WebPartZoneID="Left" WebPartOrder="2"/>
      <AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1">
            <WebPart xmlns="" xmlns:iwp="">
               <Assembly>Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
               <Title>Site Image</Title>
      <View List="103" BaseViewID="0" WebPartZoneID="Right" WebPartOrder="2"/>
      <NavBarPage Name="Home" ID="1002" Position="Start">  </NavBarPage>
      <NavBarPage Name="Home" ID="0" Position="Start">  </NavBarPage>

Related Topics