Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NavBarPage Element (Site - Module)

Published: May 2010

Provides information about the file specified as the home page in a module so that other pages can be linked to the page.

  ID = "Integer"
  Name = "Text"
  Position = "Text">




Required Integer. Specifies the ID for the page.


Required Text. Specifies the text that appears in the navigation area of other pages that link to the page.


Optional Text. Specifies the position of the UI element represented by the NavBarPage element with respect to the top navigational area on a page. Possible values include the following:

  • Start — add the node at the start (left/top in English) of the top navigational area.

  • End — add the node to the end (right/bottom in English) of the top navigational area. Default.

  • Number between 1001 and 2000 — add the node after (right/below in English) another NavBarPage element whose ID matches the specified value.

Minimum: 0

Maximum: Unbounded

The following example uses the NavBarPage element to specify information about the home page in a module.

<Module Name="Default" Url="" Path="">
  <File Url="default.aspx" NavBarHome="True">
    <View List="$Resources:core,lists_Folder;/$Resources:core,announce_Folder;" BaseViewID="0" WebPartZoneID="Left" />
    <View List="$Resources:core,lists_Folder;/$Resources:core,calendar_Folder;" BaseViewID="0" RecurrenceRowset="TRUE" WebPartZoneID="Left" WebPartOrder="2" />
    <AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1"><![CDATA[
      <WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" xmlns:iwp="http://schemas.microsoft.com/WebPart/v2/Image">
        <Assembly>Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <View List="$Resources:core,lists_Folder;/$Resources:core,links_Folder;" BaseViewID="0" WebPartZoneID="Right" WebPartOrder="2" />
    <NavBarPage Name="$Resources:core,nav_Home;" ID="1002" Position="Start" />
    <NavBarPage Name="$Resources:core,nav_Home;" ID="0" Position="Start" />
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.