Site structure
Version 5.x > Site structure > Sitemap Not Showing Pages in Subdirectories View modes: 
User avatar
Member
Member
jgriffith-nfusion - 11/11/2011 5:26:54 PM
   
Sitemap Not Showing Pages in Subdirectories
I have an issue where I am using the out-of-the-box sitemap web part but it only displays the pages in the root of the site but none of the sub-directory pages. How do I get it to display everything recursively? Is there a setting I am missing somewhere?

Thanks

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/11/2011 5:42:54 PM
   
RE:Sitemap Not Showing Pages in Subdirectories
Hello,

Could you please double check the site map settings? For example the Nesting level needs to be greater than 1 to display documents which are in deeper levels of the content tree. If you set it to -1 all documents should be displayed. Please also check other properties, like the document types displayed in the web part.

Best regards,
Boris Pocatko

User avatar
Member
Member
jgriffith-nfusion - 11/11/2011 5:47:42 PM
   
RE:Sitemap Not Showing Pages in Subdirectories
Is this an attribute I add to the control or is this a setting somewhere in the CMS?

Thanks,
Justin

User avatar
Member
Member
kentico_edwardh - 11/11/2011 6:19:35 PM
   
RE:Sitemap Not Showing Pages in Subdirectories
Hello Justin,

In the Site map Web part properties under the Content Filter section, there is a setting called Maximum nesting level, and Document types, which is what my colleague Boris is referring to.

Best Regards,
Edward Hillard

User avatar
Certified Developer 9
Certified Developer 9
charbf - 11/11/2011 8:18:20 PM
   
RE:Sitemap Not Showing Pages in Subdirectories
Hi,

If your using a portal site it's setting in the webpart's Configuration.

If your using ASPX templates then you set

document type in ClassNames
Maximum nesting level in MaxRelativeLevel

Franck

User avatar
Member
Member
jgriffith-nfusion - 11/14/2011 2:39:25 PM
   
RE:Sitemap Not Showing Pages in Subdirectories
I am currently trying to accomplish nesting with this.

<cms:CMSSiteMap ID="cmsSiteMap" runat="server" MaxRelativeLevel="-1" />


And it is still not working. Is there anything else that affects whether or not pages show up under the sitemap?

User avatar
Member
Member
jgriffith-nfusion - 11/14/2011 2:42:53 PM
   
RE:Sitemap Not Showing Pages in Subdirectories
And I am using Aspx pages as opposed to portal pages.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/15/2011 2:19:53 AM
   
RE:Sitemap Not Showing Pages in Subdirectories
Hello,

I tried your code on my and it seems to be working fine. Are the pages, which are not listed a custom document type or one available by default? Which version of Kentico are you using?

Best regards,
Boris Pocatko

User avatar
Member
Member
jgriffith-nfusion - 11/15/2011 10:42:37 AM
   
RE:Sitemap Not Showing Pages in Subdirectories
They are a custom document type. Do I need to do something to enable them in the sitemap besides the checkbox for each document?

Thanks,
Justin

v5.5.3996 R2

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/16/2011 2:50:07 AM
   
RE:Sitemap Not Showing Pages in Subdirectories
Hello,

Maybe you will have to specify them explicitly. As a test you can try to add a test page of the default type Page (Menu item). If it will be displayed, then your document type needs to be added to the Document types listing in the properties of the web part.

Best regards,
Boris Pocatko

User avatar
Certified Developer XbK
Certified Developer XbK
bmckeiver-bizstream - 12/9/2011 10:32:47 AM
   
RE:Sitemap Not Showing Pages in Subdirectories
You do indeed need to do one extra step for custom Document Types. You have to add in the Document Type in the cms:GoogleSitemap control's ClassNames property.

Full explanation here: http://www.mcbeev.com/post/2010/07/12/Rocking-the-Google-Site-Map-Feature-of-Kentico-CMS.aspx