fbpx

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.

2 Comments

Comments are closed.

About Us

Follow Us

Email: contact@keapoint.com
Phone:  0208 7852 888

Registered Address: 1 Amber Close, Reading, RG6 7ED. United Kingdom

Company No. 11586817