Copied to clipboard

Flag this post as spam?

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


  • christian 2 posts 22 karma points
    Dec 05, 2011 @ 15:11
    christian
    0

    Only show pages user have acces to in menu

    I will only list the pages the user have acces to.

    Is there a parameter in the xlst I can make a check on.

    Or have do I make acces check in the menu.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 05, 2011 @ 21:21
    Jan Skovgaard
    0

    Hi Christian

    Yes there are some stuff you can check on in XSLT using Umbraco's very own XSLT extensions. You could for instance use a combination of HasAccess and IsLoggedOn.

    You can see the answers Doug is giving here: http://our.umbraco.org/forum/developers/xslt/16790-Problem-with-umbracolibraryIsProtected%28%29-and-umbracolibraryHasAccess%28%29 it should get you going :)

    /Jan

  • christian 2 posts 22 karma points
    Dec 06, 2011 @ 09:02
    christian
    0

    That was just what I needed.

    <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())]">

    </xsl:for-each>

     

    Now it shows what i need :-)

Please Sign in or register to post replies

Write your reply to:

Draft