Wednesday, March 2, 2011

Remove table of content maximum limit

We know how table of content web part can help us providing a way to show up all links of libraries and lists on one single page for ease of access.

However when it comes to a size limit, it can show up to 50 links at a time. It does not show if you have more than 50 items.

So, how to remove this limitation? Follow the steps below. Make sure that you take a backup of web.config file of the port number of web server. (Do the same for each server if you have farm environment)

1) Open web.config for specific port for web application.
(C:\inetpub\wwwroot\wss\virtualdirectories\port)

2) Find below entries

<add name="GlobalNavSiteMapProvider" description="CMS provider for Global navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=94de0004b6e3fcc5" NavigationType="Global" EncodeOutput="true" />
<add name="CombinedNavSiteMapProvider" description="CMS provider for Combined navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=94de0004b6e3fcc5" NavigationType="Combined" EncodeOutput="true" />
<add name="CurrentNavSiteMapProvider" description="CMS provider for Current navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=94de0004b6e3fcc5" NavigationType="Current" EncodeOutput="true" />
<add name="CurrentNavSiteMapProviderNoEncode" description="CMS provider for Current navigation, no encoding of output" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=94de0004b6e3fcc5" NavigationType="Current" EncodeOutput="false" />


We need to add DynamicChildLimit="0" before the end tag "/>" on each line to disable the default 50 elements limit.

0 means no limit, If you want to limit it to specific number, specify that number there.

Example

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

Remember, you have to add this attribute in all four tags.

1 comment:

Anonymous said...

Hi,
I don't have access to our SharePoint 2007 server, so can't make the changes to the web.config file. Is there another method to displaying more than 50 sites? Or alternatively, can I display the next 50 sites - as in 51 to 100 sites - instead?
Can I edit the xsl main to only show sites after 50?
Cheers,
Jon




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com