Working with publishing navigation in SharePoint 2013

In SharePoint 2013 publishing sites, the navigation has been extended, and a new concept emerged: managed metadata navigation. The previous style of publishing navigation is now branded as “Structural Navigation”


In order to work with these settings, new classes were created under namespace Microsoft.SharePoint.Publishing.Navigation.

When a new publishing site is created, as of SharePoint 2013, the default navigation is set to managed metadata navigation. Even if it is a very powerful feature, sometimes you might want to revert back to the classic “Structural navigation”. Here is a PowerShell script that achieves this:

Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$assembly = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Publishing")

$web= Get-SPWeb $args[0] #web url
$navSettings = New-Object Microsoft.SharePoint.Publishing.Navigation.WebNavigationSettings($web)
$navSettings.CurrentNavigation.Source = 1;
#can also use GlobalNavigation for the top navigation of the site

In another scenario you might want to change the term set the managed metadata navigation is bound to. For this you would have to change the TermSetId of the CurrentNavigation property (for Quick Launch) or of the GlobalNavigation property (for Top Navigation). You can find additional details about working with managed metadata navigation in another post I have published on this topic.

You can find more about working with publishing navigation in SharePoint 2013 here:




1 comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: