Copied to clipboard

Flag this post as spam?

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


  • Mads Sørensen 188 posts 433 karma points
    Feb 22, 2012 @ 21:20
    Mads Sørensen
    0

    how to output a specific @level

    Hej Guys

    I'm new in umbraco and this is my first post.

    I've this testing website:

    http://graphicelements.dk/roerarbejde/rustfri-roer.aspx

    I would like to know how i can output a specific level nodename

    <xsl:value-of select="$currentPage/parent::*[@level=2]/@nodeName"/>

    This is how it looks rigtig now but every time i hit the parent item the name i my submenu dissapers.

    Hope som one can help me.

     

  • Kim Andersen 1447 posts 2197 karma points MVP
    Feb 22, 2012 @ 22:04
    Kim Andersen
    0

    Hi Mads

    Could your try changing your code to something like this:

    <xsl:value-ofselect="$currentPage/ancestor-or-self::*[@level=2]/@nodeName"/>

    Does this change anything for your?

    /Kim A

  • Mads Sørensen 188 posts 433 karma points
    Feb 22, 2012 @ 22:25
    Mads Sørensen
    0

    Hi Kim

    It works,

    tak for hjælpen ;o)

  • Kim Andersen 1447 posts 2197 karma points MVP
    Feb 22, 2012 @ 22:42
    Kim Andersen
    0

    Cool, great to hear that Mads.

    You are welcome :)

    /Kim A

  • Christian Stenfors 80 posts 124 karma points
    Feb 28, 2012 @ 21:58
  • Mads Sørensen 188 posts 433 karma points
    Mar 06, 2012 @ 16:17
    Mads Sørensen
    0

    Takker :o) Christian

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies