I have the following code for my navigation bar on umbraco 4.7.2, the issue i am having is that is displays properly when logged out, but i get a 500 Internal Error when I log in and trying to go to any page (the login fails with 500 IE as well). It all worked before this change so I am assuming it is this code.
The selection process involves a new generic parameter for text pages,vIfLogged, which determines if logged out users can see the page. Not all pages have this, only text pages (IE. gallery page is its on templatetype without this parameter, but it doesnt error when logged out, so I assume its okay)
isLoggedOn Problem After Login
I have the following code for my navigation bar on umbraco 4.7.2, the issue i am having is that is displays properly when logged out, but i get a 500 Internal Error when I log in and trying to go to any page (the login fails with 500 IE as well). It all worked before this change so I am assuming it is this code.
The selection process involves a new generic parameter for text pages,vIfLogged, which determines if logged out users can see the page. Not all pages have this, only text pages (IE. gallery page is its on templatetype without this parameter, but it doesnt error when logged out, so I assume its okay)
<ul id="topNavigation">
<xsl:choose>
<xsl:when test="umbraco.library:IsLoggedOn() = true()">
<li class="home">
<xsl:if test="$currentPage/@id = $currentPage/ancestor-or-self::* [@level=$level]/@id">
<xsl:attribute name="class">home current</xsl:attribute>
</xsl:if>
<a href="/">Home</a>
</li>
<xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1' and string(vIfLogged) != '0']">
<li>
<xsl:if test="@id = $currentPage/@id">
<xsl:attribute name="class">current</xsl:attribute>
</xsl:if>
<a class="navigation" href="{umbraco.library:NiceUrl(@id)}">
<span><xsl:value-of select="@nodeName"/></span>
</a>
</li>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<li class="home">
<xsl:if test="$currentPage/@id = $currentPage/ancestor-or-self::* [@level=$level]/@id">
<xsl:attribute name="class">home current</xsl:attribute>
</xsl:if>
<a href="/">Home</a>
</li>
<xsl:for-each select="$currentPage/ancestor-or-self::* [@level=$level]/* [@isDoc and string(umbracoNaviHide) != '1' and string(vIfLogged) != '0']">
<li>
<xsl:if test="@id = $currentPage/@id">
<xsl:attribute name="class">current</xsl:attribute>
</xsl:if>
<a class="navigation" href="{umbraco.library:NiceUrl(@id)}">
<span><xsl:value-of select="@nodeName"/></span>
</a>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</ul>
</xsl:template>
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.