kentico_michal
-
2/9/2012 2:20:35 AM
RE:Getting blogs and blog posts to appear in xml sitemap
Hello Andrew,
Kentico CMS's Google site map control displays tree structure. If there is some document in the path that is not included in the ClassNames property, all child document of that document are not displayed, even if they are specified in the ClassNames property. In other words, goole site map hides children documents if their parent is hidden.
I think this is your case, because there is always a document of CMS.BlogMonth document type between CMS.Blog and CMS.BlogPost that is not specified in the ClassNames property. And as a result, all child document (in this case documents of CMS.BlogPost) are not displayed.
So, to fix this issue, you need to specify all three blogs related document types in the ClassNames:
ClassNames="CMS.MenuItem;CMS.Blog;CMS.BlogPost;CMS.BlogMonth"
Anyway, there is a new property called HideChildrenForHiddenParent in Kentico CMS 6.0 that is intended exactly to deal with this limitation. If you set it to false (it is true by default) google site map displayes all documents that you need regardless of whether their parent is hidden or not.
Best regards, Michal Legen
|