Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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
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 :-)
is working on a reply...
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.
Continue discussion
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.
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
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 :-)
is working on a reply...
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.