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 #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 $navSettings.Update()
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: