Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    May 18, 2011 @ 14:50
    Fuji Kusaka
    0

    umbracoNaviHide with siteMap

    Hi Guys,

     

    Wehen creating a sitemap, I get all the links of my wesite as shoud be but somehow i just noticed that some of the links are not showing up since am using the umbracoNaviHide expression.

    How do I get the sitemap to display those links as well?

     

    Fuji

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 18, 2011 @ 15:02
    Kim Andersen
    0

    Hi Fuji

    Could you show us your code?

    /Kim A

  • Fuji Kusaka 2203 posts 4220 karma points
    May 18, 2011 @ 15:11
    Fuji Kusaka
    0

    Hi Kim,

     

    Well am using the XSLT template Site Map. But since i have some hidden links on my website where i used the property umbracoNaviHide to hide from my main navigation, now its not showing up in my sitemap page.

    Is there a way for my sitemap to display it.

     

    //fuji

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 18, 2011 @ 15:15
    Kim Andersen
    0

    Yeah I get that, but I can't quite remember the code used for rendering the SItemap. If we can see your code, I think we can solve this pretty quickly. It'll be something about removing [umbracoNaviHide!=1] or something like that.

    But try copying your code in here...

    /Kim A

  • Fuji Kusaka 2203 posts 4220 karma points
    May 18, 2011 @ 15:22
    Fuji Kusaka
    0

    Its working now.... i was using the wrong XSLT in my template!!

    from

      <xsl:for-each select="$parent/* [@isDoc and string(umbracoNaviHide) != '1' and @level &lt;= $maxLevelForSitemap]"> 

    to

     <xsl:for-each select="$parent/* [@isDoc and @level &lt;= $maxLevelForSitemap]"> 

    //Fuji

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 18, 2011 @ 15:24
    Kim Andersen
    0

    Cool. Great to hear Fuji.

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft