Thursday 18 September 2008

Multiple levels of SharePoint menu

By default only the main sites and sub sites are displayed in the top harepoint menu, if you want further level of sites to appear on the top navigation you just need to modify the SharePoint menu option in the master page.


Before doing this open the default master page in sharepoint designer and take a copy of it and play with the copy just in case if you mess it up can you always revoke back.
Edit the master page in Sharepoint designer and find the tag and change the contents of it to look something like below, the key value is the MaximumDynamicDisplayLevels changing it to 1 or more will give you additional sub menus


DynamicHorizontalOffset="0"

DynamicVerticalOffset="0"

StaticEnableDefaultPopOutImage="false" Runat="server"

DataSourceID="LeaveThisValueUntouched"

Orientation="Horizontal"

StaticDisplayLevels="2"

MaximumDynamicDisplayLevels="2" //this sets the number of levels

StaticSubMenuIndent="0" //you can indent the sub menu as you wish

ItemWrap="false"

SkipLinkText="<%$Resources:cms,masterpages_skiplinktext%>"

CssClass="topNav">


Save the modified master page and that's it!


If you have taken a copy and have changed the copy then you need to go to Site Settings - Master Page option in your sharepoint site and from the drop down choose the new master page.

keywords: dynamic menu sharepoint, multi level menu, advanced menu, top navigation sharepoint

No comments: