Customize the sharepoint 2010 site top menu

15. December 2011 08:17 by Rashid Aziz in Sharepoint blogs  //  Tags: ,   //   Comments

How to hide SharePoint 2010 root node from menu, how to change TopNavigationDataSource setting on master page.

To do this you need to do some changes in your site master page.

Open you site master page in SharePoint designer

Need to delete delegate wrapper code altogether from master page and set the values of your desired properties. Locate and delete the followings from site master page. 

<SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource"
  Id="topNavigationDelegate">
                    <Template_Controls>
                    </Template_Controls>
</SharePoint:DelegateControl>

You need to leave the actual data source control definition with any properties you want, as shown below:

<asp:SiteMapDataSource

  ShowStartingNode="False"
  SiteMapProvider="CombinedNavSiteMapProvider"
  id="topSiteMap"
  runat="server"/>

All of your navigation property choices will be picked up by whatever navigation control you’re using, including out-of-the-box SharePoint:AspMenu control.

You don’t see the Home link, only see the team site link.

blog comments powered by Disqus

Stay connected

SharePoint Links

Month List