18 Oct 2012
15 Jul 2011
Link to this post
p.NodeType == Telerik.Sitefinity.Pages.Model.NodeType.Standard does bring in some data, but it does not appear to be what I would expect to see in a sitemap file.
Let's say that I have root level pages of "about, service and stuff". Then I have a group page "Information" that contains child node pages of "Contact Info, forms and etc".
Running the sitemap.ashx with this change will only result in showing me "About, service, stuff" when I would want to see "About, service, stuff, contact info, forms and etc". I am going to play with it some more, but I am guessing we need to loop through more to target children of a NodeType.Group, but not include the actual group page itself.
EDIT: Well this wasn't exactly true. The reason I was not seeing the others was due to the check on whether they can be viewed in navigation. Taking that out does bring the rest of the pages in, but I can see where it gets tricky on how you decide if it should be in there or not.
For instance I have a login page that is not set to show in navigation and is now in the sitemap, when I do not need it there. Putting the navigation check back in will handle this, but then I will loose my sub-pages that are not part of the main navigation, but should be indexed.
Any thoughts or suggestions? Maybe check if "Allow to be indexed" is set?