0

In a recent client’s project where a site collection (Publishing Site) has about 258 subsites and the site navigation is configured to show all subsite links in the Top Site Navigation (Global Navigation) and in Quick Launch, the Site Settings>Navigation>Editing & Sorting control> was updated to show all the subsite links (after making changes to the Navigation Provider’s childitems count in Web.Config File)

The issue was that, only in SharePoint 2013 PowerShell, the $Web.Navigation.TopNavigationBar could not enumerate more than 50 child items (where as it actually contains 258 child items/nodes).

Does anyone aware if this is an issue in SharePoint 2013, I have tested identical scenario in SharePoint 2010 and was able to enumerate all child items/nodes in SP2010.

$web = Get-spweb <url to the publishing site>
$pubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
$web.Navigation.TopNavigationBar.Count
50
$pubweb.Navigation.GlobalNavigationNodes.Count
50

(Visited 46 times, 1 visits today)
Add a Comment