Maximale hoeveelheid SharePoint sites in de Root-site

Binnen SharePoint worden maximaal 50 sites weergegeven die in de root staan. Op het moment dat deze hoeveelheid overschreden word, zijn de referenties hiernaar niet zichtbaar.

Wat nu als de hoeveelheid sites in de root meer is dan 50?
Een modificatie van de betreffende web.config waarbij er een DynamicChildLimit="Integer" attribuut wordt toegevoegd, lost het probleem op!

Zie de screenshot:

over50sites

 

1. Open IIS manager (Klik Start –> Administrative Tools -> Internet Information Services (IIS) Manager.

2. Klap ‘Web Sites’ open en selecteer de betreffende website waarop de wijziging van toepassing moet zijn.

3. Dubbelklik op web.config om de eigenschappen ervan te openen.

4. Ga naar het tabblad ASP.NET en kopieer de bestandslocatie (standaardlocatie is: C:\Inetpub\wwwroot\wss\ViirtualDirectories\<poort>\web.config).

5. Open de web.config vanuit deze locatie en maak daarbij gebruik van Notepad / Kladblok (Start -> Run -> plak de locatie uit stap 4).

6. Ga in web.config opzoek naar de volgende code:

<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" IncludePages="PerWeb" IncludeHeadings="true" IncludeAuthoredLinks="true" />

<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=71e9bce111e9429c" NavigationType="Combined" EncodeOutput="true" IncludePages="PerWeb" IncludeHeadings="true" IncludeAuthoredLinks="true" />

<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=71e9bce111e9429c" NavigationType="Current" EncodeOutput="true" IncludePages="PerWeb" IncludeHeadings="true" IncludeAuthoredLinks="true" />

<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=71e9bce111e9429c" NavigationType="Current" EncodeOutput="false" IncludePages="PerWeb" IncludeHeadings="true" IncludeAuthoredLinks="true" />

7. Achter de 4 definities die in de bovenstaande code gemarkeerd staan als vet, plakt u het volgende attribuut:

DynamicChildLimit="100" - indien 100 sites het nieuwe maximum moet worden.
DynamicChildLimit="0"        - Geen limiet

Voorbeeld:

<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" IncludePages="PerWeb" IncludeHeadings="true" IncludeAuthoredLinks="true" />

<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=71e9bce111e9429c" NavigationType="Combined" EncodeOutput="true" DynamicChildLimit="0" IncludePages="PerWeb" IncludeHeadings="true" IncludeAuthoredLinks="true" />

<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=71e9bce111e9429c" NavigationType="Current" EncodeOutput="true" DynamicChildLimit="0" IncludePages="PerWeb" IncludeHeadings="true" IncludeAuthoredLinks="true" />

<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=71e9bce111e9429c" NavigationType="Current" EncodeOutput="false" DynamicChildLimit="0" IncludePages="PerWeb" IncludeHeadings="true" IncludeAuthoredLinks="true" />

8. Sla de wijzigingen op.

9. Start IE en open de pagina / of ververs de pagina indien deze al open staat – IIS reset zou niet nodig moeten zijn.

Maak altijd een back-up voordat u wijzigingen aanbrengt!