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 4908 posts 12265 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

Please Sign in or register to post replies

Write your reply to:

Draft