Share via


TopMenuItems Element

The TopMenuItems element is a collection of TopMenuItem elements. Defines the top menu bar for all pages during site provisioning.

Syntax

<TopMenuItems>
</TopMenuItems>
Parent Elements Child Elements
Project TopMenuItem

Example

The following excerpt is from the opening of ONET.XML. The user can edit this file to create different links on the top of every page on a Web site based on SharePoint Team Services from Microsoft.

<TopMenuItems>
  <TopMenuItem Name="Home" DisplayName="Home" Url="_layouts/default.htm"></TopMenuItem>
  <TopMenuItem Name="Documents" DisplayName="Documents" Url="_layouts/AllLibs.htm"></TopMenuItem>
  <TopMenuItem Name="Discussions" DisplayName="Discussion Boards" Url="_layouts/discusns.htm"></TopMenuItem>
  <TopMenuItem Name="Lists" DisplayName="Lists" Url="_layouts/viewlsts.htm"></TopMenuItem>
  <TopMenuItem Name="Create" DisplayName="Create" Url="_layouts/create.htm"></TopMenuItem>
  <TopMenuItem Name="SiteSettings" DisplayName="Site Settings" Url="_layouts/settings.htm"></TopMenuItem>
  <TopMenuItem Name="Help" DisplayName="Help" Url="javascript:HelpWindow" Replace="javascript:HelpWindow"></TopMenuItem>
</TopMenuItems>