Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • wildlife 54 posts 74 karma points
    Jun 02, 2010 @ 08:45
    wildlife
    0

    Sitemap not showing deeper levels.

    Hello,

    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.

     

     

     

     

     

     

     

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jun 03, 2010 @ 10:09
    Sebastiaan Janssen
    0

    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"/>
  • wildlife 54 posts 74 karma points
    Jun 04, 2010 @ 02:38
    wildlife
    0

    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.

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Jun 04, 2010 @ 13:04
    Sebastiaan Janssen
    0

    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.

  • wildlife 54 posts 74 karma points
    Jun 05, 2010 @ 00:05
    wildlife
    0

    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.

     

     

Please Sign in or register to post replies

Write your reply to:

Draft