Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Reference
Site Schema
M-Z
 NavBar Element

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
NavBar Element (Site)

Contains the definition of the navigation area for either the top links of all pages within a site or for the Quick Launch area of the home page.

<NavBar
  Body = "Text"
  ID = "Integer"
  Name = "Text"
  Prefix = "Text"
  Separator = "Text"
  Suffix = "Text"
    Url = "Text">
</NavBar>
Attribute Description

Body

Required Text. Contains the body of the definition for the navigation bar.

ID

Required Integer. Specifies the ID of the navigation bar.

Name

Required Text. Contains the name of the navigation bar.

Prefix

Optional Text. Contains the opening tag for the table that contains the navigation bar.

Separator

Optional Text. Specifies the separator to use between items in the navigation bar.

Suffix

Optional Text. Contains the closing tag for the table that contains the navigation bar.

Url

Optional Text.

Minimum: 0

Maximum: Unbounded

The following example defines the top navigation area of a home page.

Xml
<NavBar Name="SharePoint Top Navbar" Separator="&nbsp;&nbsp;&nbsp;" 
   Body="<a ID='onettopnavbar#LABEL_ID#' href='#URL#' 
      accesskey='J'>#LABEL#</a>" ID="1002">
   <NavBarLink Name="Documents and Lists" 
      Url="_layouts/[%=System.Threading.Thread.CurrentThread.
      CurrentUICulture.LCID%]/viewlsts.aspx" />
   <NavBarLink Name="Create" 
      Url="_layouts/[%=System.Threading.Thread.CurrentThread.
         CurrentUICulture.LCID%]/create.aspx" />
   <NavBarLink Name="Site Settings" 
      Url="_layouts/[%=System.Threading.Thread.CurrentThread.
         CurrentUICulture.LCID%]/settings.aspx" />
   <NavBarLink Name="Help" 
      Url="javascript:HelpWindowKey("helphome")" />
</NavBar>
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Hide a NavBar      Kristof Van Gils   |   Edit   |   Show History

Is it possible to hide a navbar for users without the right permissions? (through xml)

Thanks

Tags What's this?: navbar (x) onet (x) xml (x) Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker