ASPX templates
Version 4.x > ASPX templates > Sitemap control displaying items that should be hidden View modes: 
User avatar
Certified Developer 9
Certified Developer 9
jkh80 - 5/5/2009 12:03:02 PM
   
Sitemap control displaying items that should be hidden
I'm using a CMSSiteMap control and I would like it to only display CMS.MenuItem items, but it is showing all items in my site structure for some reason.

Also, it is even showing items that have the "Show in sitemap" property unchecked.

No matter what I set the control properties to, this behaviour persists.

Here is the markup I am using to render my control, any help would be appreciated:

<cms:CMSSiteMap ID="CMSSiteMap1" runat="server" ClassNames="CMS.MenuItem" SelectOnlyPublished="true" SiteName="MySite" Path="/%" />

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/18/2009 5:24:16 AM
   
RE:Sitemap control displaying items that should be hidden
Hello,

This issue was solved by e-mail - it was caused by code on template where CMSSiteMap control was used. Generaly the specified configuration of CMSSiteMap control works well.

Martin Dobsicek