Copied to clipboard

Flag this post as spam?

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


  • Daniel 19 posts 51 karma points
    Mar 04, 2011 @ 13:23
    Daniel
    0

    Exclude a node with ID in the menu

    Hi.

    I'm looking for a way to exclude a node with a certain ID using my xslt:

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

    I can't figure it out though. I want to exclude the node id #1168. The reason I want it excluded is because it's set to TRUE in showInNavigation and it needs to be this way. But I'm having different menus for logged in people and a public menu.

    Appreciate your help!

  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 04, 2011 @ 13:42
    Kim Andersen
    0

    Hi Daniel

    Could you try this:

    <xsl:for-each select="$currentPage/ancestor-or-self::* [@isDoc and @level=$level]/* [@isDoc and string(showInNavigation) = '1' and @id!='1168']"

    /Kim A

  • Daniel 19 posts 51 karma points
    Mar 04, 2011 @ 14:04
    Daniel
    0

    Kim, that worked like a charm! This will be useful through the whole projekt. Big thanks!

  • Kim Andersen 1447 posts 2196 karma points MVP
    Mar 04, 2011 @ 14:15
    Kim Andersen
    0

    Cool Daniel. I'm glad I could help you out.

    Have a nice weekend!

    /Kim A

  • 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