The default number of urls displayed in the table of contents webpart is 50. When you have more than 50 sites in your sitedirectory not all of your sites will be listed. Therefore we want to change that default number.
This can easily be done by using the "DynamicChildLimit" attribute. This attribute takes a number. When you set it to 0, this means that there is no limit.
You can find the attribute in the web.config file (under ..\Inetpub\wwwroot\wss\VirtualDirectories\80) and look for following section:
<providers>
<add name="SPNavigationProvider" … />
<add name="SPSiteMapProvider" … />
<add name="SPContentMapProvider" … />
<add name="SPXmlContentMapProvider" … />
<add name="AdministrationQuickLaunchProvider" … />
<add name="SharedServicesQuickLaunchProvider" … />
<add name="GlobalNavSiteMapProvider" … />
<add name="CombinedNavSiteMapProvider" … />
<add name="CurrentNavSiteMapProvider" … />
<add name="CurrentNavSiteMapProviderNoEncode" … />
<add name="SiteDirectoryCategoryProvider" … />
<add name="MySiteMapProvider" … />
<add name="MySiteLeftNavProvider" … />
<add name="UsagePagesSiteMapProvider" … />
</providers>
Now paste the attribute in the 4 bold providers. Here’s an example:
<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=71e9bce111e9429c" NavigationType="Global" EncodeOutput="true" DynamicChildLimit="0" />
Just execute an iisreset and you are done!
Tags van Technorati:
SharePoint