Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've installed your sitemap package on two sites. It worked perfectly on the first site, but now on the second site, it isn't displaying any pages deeper in the tree than the first level. It is only showing the pages that are in the top navigation menu at level one. There are many more pages on the site at deeper levels that I'd like for this to include, but I can't figure out why it isn't working the same way on this second site.
I made the change in the XSLT file to make it display the home page as detailed in another thread here. That worked great.
Any ideas why it isn't displaying deeper levels?
If you need additional information from me about things before you can determine what's wrong, let me know and I'll answer as best I can. I'd still consider myself an Umbraco newbie, so please bear with me. Thanks in advance for any help anyone can provide.
Near the top of the XSTL file, there's a variable that sets how deep the sitemap should go:
<!-- update this variable on how deep your site map should be -->
<xsl:variable name="maxLevelForSitemap" select="6"/>
I figured it out. It's because I didn't have the parent pages of where the deeper levels were located set to appear in navigation. I didn't know that what appears on the sitemap was tied to the Hide in Navigation field. There are many pages that I want to appear on the sitemap, but not in the top menu system. So what I had to do was create a new field that I called "Hide in Sitemap" with an alias of umbracoSitemapHide and replaced any reference to umbracoNaviHide within the XSLT file to umbracoSitemapHide and that worked to allow me to have all my pages in the sitemap even if they aren't in the main navigation.
Be careful with this though, Google will punish your site for exposing URL's through the sitemap, but not through the site. If these pages can all be reached by just browsing your site, then it's all good, however, if there are pages that you ONLY put in your sitemap for Google to see then your score will suffer.
OK, thanks for the info.
I'll make sure that all pages that get included are ones that are reachable through links elsewhere on the site. Any of them that aren't reachable, I'll use the "Hide in Sitemap" option I created to prevent them from showing.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted