Sunday, September 13, 2009

How to enable drop down menus for top-link bar?

This is one of the basic questions I faced when I started using/implementing SharePoint. But I will still post it for record :)

I refered the solution explained by Eric Shups here. Below is the summary of what I did:

Find the below section in default.master page of the site
< asp:SiteMapDataSource
ShowStartingNode="False"
SiteMapProvider="SPNavigationProvider"
id="topSiteMap"
runat="server"
StartingNodeUrl="sid:1002" / >

Change it to following
<asp:SiteMapDataSource
ShowStartingNode="True"
SiteMapProvider="SPSiteMapProvider"
id="topSiteMap"
runat="server" />

Also change the following in default.master to appropriate levels
StaticDisplayLevels="2"
MaximumDynamicDisplayLevels="1"

(Refresh page in IE to see the changes)

If you have enabled Publishing features on MOSS make sure you have checked the 'Show Subsites' checkbox in Navigation settings. Heather Solomon has explained this in detail in her post.

No comments:

Post a Comment