Customize the sharepoint 2010 site top menu

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.

More Blogs

Contact us

To begin your digital transformation, get in touch.

We’re pleased to address any inquiries you might have and assist you in selecting the service that best suits your requirements.

Your benefits:
Speak To Us