Copied to clipboard

Flag this post as spam?

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


  • Andrew 14 posts 34 karma points
    Sep 08, 2012 @ 18:55
    Andrew
    0

    Restricting Navigation Items base on Member Groups - Xslt

    I just want to check this is the correct way of doing this. It seems to work but wanted to check there wasn't a better way.

     

    <xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1' and (umbraco.library:IsProtected(@id, @path) = false() or umbraco.library:HasAccess(@id, @path) = true())]">
      <li>item here</li>
    </xsl:for-each>

     

    Thank you in advance.

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Sep 10, 2012 @ 00:42
    Jeroen Breuer
    0

    Looks like that is the best way in xslt :).

    Jeroen

  • 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