Why doesn’t the Google sitemap display all documents?

HelenaG Grulichova asked on June 5, 2012 03:41

Why doesn’t the Google sitemap display all documents?

Correct Answer

HelenaG Grulichova answered on June 5, 2012 03:41

The Google sitemap displays a tree structure. As a result, some documents might not be displayed if they are under a document that is not part of the tree structure. For example, if you have cms.news documents under a cms.file document and set the ClassNames of the Google site map control to cms.news, they won't be displayed because their parent document is not included in the displayed content.

We have to keep this functionality for security reasons, but there has been, since hotfix 6.0.9, a new property called HideChildrenForHiddenParent which can be set to false if you want to display all documents specified in the ClassNames property regardless of whether their parent document is displayed or not:

<cms:GoogleSitemap runat="server" ID="googleSitemap" HideChildrenForHiddenParent="false" ...
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.