SharePoint Blogs / SharePoint University
SharePoint Blogs and SharePoint University - all in one place!
Need SharePoint Training? Attend a SharePoint Bootcamp!

Please delete cookies related to sharepointblogs.com and sharepointu.com to resolve login issues!

Setting the Global Navigation

By default the SharePoint menu is two level deep: it contains a major and a minor level, look like this:

 

By the way: we can expand it! You need to open the master page, and edit the TopNavigationMenu property. The StaticDisplayLevels defines the number of the major levels, and the MaximumDynamicDisplayLevels defines the number of the deeper menu levels.

The default value of the StaticDisplayLevels is "2", because the first level is the Home page, and the second one is its first subsites. The MaximumDynamicDisplayLevels has default value "1" - this defines to display only one deeper menu level.

The following code example defines a menu with 3 deep levels:

      StaticDisplayLevels="2"
      MaximumDynamicDisplayLevels="3"

 


Posted 11-15-2007 1:27 AM by Agnes Molnar

Comments

Michael Gannotti wrote re: Setting the Global Navigation
on 11-15-2007 8:26 AM

This is a great post! Thanks for documenting and sharing it.

Elin Kolloen wrote re: Setting the Global Navigation
on 11-15-2007 2:19 PM

Thank you for the tip!

I've seen this property also for the QuickLaunch bar, but I haven't been able to populate them with more than the default levels. Does anyone know how if this is possible also using the QuickLaunch?

Agnes Molnar wrote re: Setting the Global Navigation
on 11-17-2007 7:08 AM

Elin: Yes, the Quick Launch is a little different thing, it's not too beauty to make it more level deep. One tweak: you can make the global navigation also vertical... :-)

Agnes Molnar wrote re: Setting the Global Navigation
on 11-17-2007 7:27 AM

Michael: Thanks for your link at your blog. One litte correction: I'm a woman ;-)

SharePoint, SharePoint and stuff wrote SharePoint Kaffeetasse 33
on 11-21-2007 2:22 AM

Tipps Setting the Global Navigation Use Conditional Formatting in Data Views based on User Security Permissions

Hector Insua wrote re: Setting the Global Navigation
on 11-30-2007 10:37 AM

Excelent Post, Thanks!

Khairul Rezza wrote re: Setting the Global Navigation
on 12-05-2007 4:59 AM

Thanks for post Agnes,

but would you mind to explain how to add the level 2 & level 3 items since I'm still confused how to add it since there is no level 2 & 3 on navigation control panel ( myserver.com/_layouts/AreaNavigationSettings.aspx )

Thanks a lot..

greeting from Jakarta

Marat Gubaidulin wrote re: Setting the Global Navigation
on 01-29-2008 7:09 AM

Thats very good,

but I have another problem building menu: how can I change datasource  to sitemap file? I.e. I have correct web.sitemap file in the root of the site and I want to build menu based on its content.

Could you write me a sample code, please.

jeremy wrote re: Setting the Global Navigation
on 02-01-2008 3:52 PM

How do you configure this once you change the master page.  I usually use the navigation control panel and move links and sites to the appropreate nesting but there is still only one nest level

OBA, SharePoint and Aghy [MVP] wrote Setting the Global Navigation
on 04-28-2008 9:42 PM

By default the SharePoint menu is two level deep: it contains a major and a minor level, look like this

Jose Perez wrote re: Setting the Global Navigation
on 02-13-2009 4:47 AM

I need, code example complet.

Jane wrote re: Setting the Global Navigation
on 04-22-2009 11:13 AM

Hi, do you know how you can use this method when manually sorting the global navigation?

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
Need SharePoint Training? Attend a SharePoint Bootcamp!
Posts (c) their respective authors. Everything else (c) 2009 SharePoint Experts, Inc.