Export (0) Print
Expand All

PortalNavigation.GlobalDynamicChildLimit Property

Controls the maximum number of "dynamic" child items to show beneath this site in global navigation.Dynamic children are sub-sites (represented by SPWeb objects) and publishing pages.

Namespace:  Microsoft.SharePoint.Publishing.Navigation
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

public int GlobalDynamicChildLimit { get; set; }

Property Value

Type: System.Int32
Returns Int32.

The default value is 20. Setting the value to 0 removes the limit.The value of the DynamicPageLimit property on the associated PortalSiteMapProvider takes precedence over this setting unless PortalSiteMapProviader.DynamicPageLimit is set to 0, which is the default. You can use this property to limit the effect of poor navigation management. When a site has a large number of sub-sites or pages, and the GlobalIncludeSubSites and GlobalIncludePages properties are set to true, all the items are displayed in the the navigation menus. Showing large numbers of items in the navigation menus is not useful and can have a negative impact on performance.To save changes after setting this property, call the PublishingWeb.Update method.

Show:
© 2014 Microsoft