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
Hi All,
I am trying to show few links base on user privileges parent and child li's, stuck at this code please help me, googled a lot nothing on these. these generic list items and user are from active directory and defined by numbers to show node name
<xsl:variable name="visitors" select="2"/><xsl:variable name="hr" select="3"/><xsl:variable name="finance" select="6"/><xsl:variable name="Admins" select="8"/>
<ul class="nav-menu"> <li class="first"> <a href="/intranet-home.aspx" alt="Intranet-Home">Home</a> </li><xsl:for-each select="$currentPage/ancestor-or-self::*[@isDoc and @level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']"> <li> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> <xsl:if test="count(./child::*[@isDoc and string(umbracoNaviHide) != '1']) > 0"> <ul> <xsl:for-each select="./child::*[@isDoc and string(umbracoNaviHide) != '1']"> <xsl:choose> <xsl:when test="contains(umbraco.library:Session('priviliges'), $PM_Privilige)"> <xsl:if test="@nodeName='Updates'"> <li> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> </li> </xsl:if> </xsl:when> <xsl:otherwise> <li> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> </li> </xsl:otherwise> </xsl:choose> </xsl:for-each> </ul> </xsl:if> </li></xsl:for-each></ul>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Hide menu list base on Privileges
Hi All,
I am trying to show few links base on user privileges parent and child li's, stuck at this code please help me, googled a lot nothing on these. these generic list items and user are from active directory and defined by numbers to show node name
<xsl:variable name="visitors" select="2"/>
<xsl:variable name="hr" select="3"/>
<xsl:variable name="finance" select="6"/>
<xsl:variable name="Admins" select="8"/>
<ul class="nav-menu">
<li class="first">
<a href="/intranet-home.aspx" alt="Intranet-Home">Home</a>
</li>
<xsl:for-each select="$currentPage/ancestor-or-self::*[@isDoc and @level=$level]/* [@isDoc and string(umbracoNaviHide) != '1']">
<li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
<xsl:if test="count(./child::*[@isDoc and string(umbracoNaviHide) != '1']) > 0">
<ul>
<xsl:for-each select="./child::*[@isDoc and string(umbracoNaviHide) != '1']"> <xsl:choose>
<xsl:when test="contains(umbraco.library:Session('priviliges'), $PM_Privilige)"> <xsl:if test="@nodeName='Updates'"> <li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</li>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</ul>
</xsl:if>
</li>
</xsl:for-each>
</ul>
is working on a reply...