SharePoint 2010/2013 sitemap provider limitation for editing items in Global Navigation and Current Navigation.

In a recent migration and upgrade project from SharePoint 2007 to SharePoint 2013 (with intermediary SharePoint 2010 upgrade) there was an issue in the upgraded content in SharePoint 2010 and SharePoint 2013 that in Navigation settings, the “Editing and sorting control” did not show all SubSite links to edit. The site in SharePoint 2007 was having about 258 Sub Sites and all Subsets are configured to be added to the parent site’s Top Navigation (Global navigation) and quick launch navigation. Client has customized the order for all SubSite links in both Global/Current.

image
Global and Current Navigations.

clip_image004Sorting and Editing Global Navigation Links


imageSorting and Editing Current Navigation Links


After upgrade to SharePoint 2010/2013, the issue was (in Site Action->Navigation) in the navigation settings page, the “Structural Navigation: Editing and Sorting” control displayed only 50 Subsets/Page links in Global/Current navigation. The reason being, by design, as per the default settings for NavSiteMapProvider in Web.Config, the SharePoint only showed the first 50 items (pages) in the Navigation Editing and Sorting control.  All other Sub Sites did not show-up under the Navigation Editing and Sorting section.

In order to show all items in the "Navigation Editing and Sorting" navigation pane, web.config file on each Web Front-End server in the farm has been modified for following providers with DynamicChildLimit="0".

<add name="GlobalNavSiteMapProvider" description="CMS provider for Global navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Global" EncodeOutput="true" DynamicChildLimit="0" />

<add name="CurrentNavSiteMapProvider" description="CMS provider for Current navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Current" EncodeOutput="true" DynamicChildLimit="0" />

Also the default value for maximum number of dynamic items to show with in this level of navigation is 20 for Global and Current navigation. This value can be increased depending on requirement to show the number of “Top Navigation (Global Navigation)” items.

image