SharePoint 2013 a different navigation menu for a subsite

Hello I have a problem with the top navigation.

I have created a sub-site from a site collection. now, the sub-site has a different master page that is similar to the master page in the site collection. the site has a navigation menu and when I create the sub-site it inherits it's top navigation menu. Now I want a different navigation menu and I don't know how to configure it. when I create the current navigation for the sub-site it still showing me the navigation from the top site.

Thank you for your help.

Yotam.

August 17th, 2015 5:50am

Yotam,

Browse to ur Sub site.

Go to Site settings --> In Look and Feel section Click on Navigation.

In Navigation page Select "Structural Navigation" in the global Navigation settings.

This setting will allow you to manage navigation for this particular site.

 

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 6:09am

Hi Shoaib,

I tried it already. it is a custom navigation bar and I think it is related to settings in my mater page for the sub-site.

it's only taking the navigation data from the site collection and not from the sub-site.
August 17th, 2015 6:20am

You need to make changes to your Subsite master page. locate the control asp:SiteMapDataSource used as data source for your menu control and change the SiteMapProvider property to CurrentSiteMapProvider.

for more detail please follow link below.

https://msdn.microsoft.com/en-us/library/office/bb897657(v=office.14).aspx

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 6:47am

Okay Finally found a solution:

this is how the navigation bar looks inside the master page:

    <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
<asp:SiteMapDataSource
ShowStartingNode="False"
SiteMapProvider="SPNavigationProvider"
id="topSiteMap"
runat="server"
StartingNodeUrl="sid:1002"/>
<SharePoint:AspMenu
ID="TopNavigationMenu"
Runat="server"
CssClass ="mega-menu"
EnableViewState="false"
DataSourceID="topSiteMap"
AccessKey="<%$Resources:wss,navigation_accesskey%>"
UseSimpleRendering="true"
UseSeparateCss="false"
Orientation="Horizontal"
StaticDisplayLevels="2"
AdjustForShowStartingNode="false"
MaximumDynamicDisplayLevels="2"
SkipLinkText=""
             
            />
</asp:ContentPlaceHolder>

all I needed was to change in the "SiteMapProvider" to value shown above.
hope it helps someone!
August 17th, 2015 6:53am

Hi,

Thanks for sharing! It will help others who suck with the problem!

Best Regards,

Dennis

Free Windows Admin Tool Kit Click here and download it now
August 17th, 2015 10:16pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics