AllUsersWebPart Element

The AllUsersWebPart element contains a Web Part in a module of a site definition.


   WebPartOrder = Integer
   WebPartZoneID = "Text">


Name Description
WebPartOrder Required Integer. Specifies the vertical positioning of the Web Part within a zone.
WebPartZoneID Required Text. Specifies the zone for the Web Part.

Element Relationships

Parent Elements
File, WebParts


The following example from ONET.XML uses the AllUsersWebPart element to contain a Web Part within a file in 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>