Alexander's Blog

Sharing knowledge with the global IT community since November 1, 2004

How to Deal with 50 Site Limit in TOC Web Part in MOSS 2007

/
/
ad-mania

If you’ve run into the 50 site limitation in the site directory listing you can use the following method to increase the size limit. The Table of Content (TOC) Web part is used to display the site directory listing. If you were using SPS 2003 before you may have thousands of sites listed in the TOC Web part but if you upgrade it to MOSS 2007 you will notice that only the first 50 sites are displayed.

Edit the IIS web.config file located at C:\inetpub\wwwroot\wss\VirtualDirectories\YourSiteName80 on each front-end Web server. Make sure that you edit the correct web.config file. DO NOT edit the SharePoint web.config file located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\CONFIG\.

Set the DynamicChildLimit value to “0” if you don’t want any limits. Otherwise, set it to a number that you would like.

For each provider listed below, add the DynamicChildLimit value, as shown in bold below. The following example sets the size limit to zero (unlimited).

<add name=”GlobalNavSiteMapProvider” description=”CMS provider for Global navigation” type=”Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=70ac9876ab9ca575″ NavigationType=”Global” EncodeOutput=”true” DynamicChildLimit=”0″/>

<add name=”CombinedNavSiteMapProvider” description=”CMS provider for Combined navigation” type=”Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=70ac9876ab9ca575″ NavigationType=”Combined” EncodeOutput=”true” DynamicChildLimit=”0″/>

<add name=”CurrentNavSiteMapProvider” description=”CMS provider for Current navigation” type=”Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=70ac9876ab9ca575″ NavigationType=”Current” EncodeOutput=”true” DynamicChildLimit=”0″/>

<add name=”CurrentNavSiteMapProviderNoEncode” description=”CMS provider for Current navigation, no encoding of output” type=”Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=70ac9876ab9ca575″ NavigationType=”Current” EncodeOutput=”false” DynamicChildLimit=”0″/>

  • Facebook
  • Twitter
  • Linkedin

Leave a Comment

Your email address will not be published. Required fields are marked *

This div height required for enabling the sticky sidebar