0

I'm using managed terms for QuickLaunch navigation in SP2013. By default, it seems to only to display "contextual" links (that is, when I go to a sub-pages, the top level links and their children all disappear, leaving only sibling and child pages.) I saw this post in which the asker seems to have the opposite problem. How do I get the complete navigation to appear on all pages?

2
  • I possibly didn't quite understand your question, but could you accomplish this by setting Structural Navigation: Display the navigation items below the current site on your top site's navigation settings, and on sub sites (and on its sub sites, etc.) use the navigation option Display the same navigation items as the parent site (which has info text (Parent is using Structural Navigation.).
    – moe
    Commented Aug 21, 2014 at 14:12
  • Thanks @moe, but that option is not possible when using managed terms for navigation. We've resolved the issue by using a second "global navigation" component instead, but I'm still curious if there is a way to to this.
    – Rob Wagner
    Commented Aug 28, 2014 at 15:00

1 Answer 1

0

I've done that before using a Delegate Control.

Assuming you already have a Farm or Sandbox solution, add an Empty Element to your project and put the following in your Elements.xml file.

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Control Id="QuickLaunchDataSource"
Sequence="50"
ControlClass="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapDataSource"
ControlAssembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
    <Property Name="SiteMapProvider">CurrentNavigationTaxonomyProvider</Property>
    <Property Name="ID">QuickLaunchSiteMap</Property>
    <Property Name="TreatStartingNodeAsCurrent">true</Property>
    <Property Name="StartingNodeOffset">2</Property>
  </Control>
</Elements>

Adjust the StartingNodeOffset to the depth you want the navigation to start at. In your case it might be 1.

Add the element to a Feature.

Deploy the solution.

Activate the feature.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.