Copied to clipboard

Flag this post as spam?

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


  • John Teglmand 8 posts 29 karma points
    May 22, 2011 @ 18:48
    John Teglmand
    0

    Xslt menu

    I have this struktur:

    UK
    - A1
       -- AA11
    - A2
    DK
    - B1
    - B2
      -- BB33

    <xsl:for-each select="$currentPage/ancestor-or-self::root//* [@isDoc and string(umbracoNaviHide) != '1']">

    If I using this I get a menu white all page. I just wont to have the UK or the DK tree. how can I do that?

     

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 22, 2011 @ 21:17
    Kim Andersen
    0

    Hi John

    You might want to try out the default build-in Main Navigation XSLT template. Called something like List Subpages by Level.

    Well, actually instead of using your code, try this:

    <xsl:for-each select="$currentPage/ancestor-or-self::*[@level='1']//* [@isDoc and string(umbracoNaviHide) != '1']">
    This will giveyou alle pages below UK or below DK depending on where you are currently located. Does this make sense?

    /Kim A

  • John Teglmand 8 posts 29 karma points
    May 22, 2011 @ 21:46
    John Teglmand
    0

    Hi Kim - I am, as you sure has thought, new to Umbraco and XSLT, and not least, therefore, thanks for your help

  • Kim Andersen 1447 posts 2196 karma points MVP
    May 23, 2011 @ 13:08
    Kim Andersen
    0

    Hi John

    You are welcome. I'm glad you liked the answer.

    Let us know if you any further questions :)

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft