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
<xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) = '1']"> <div class="article"> <h3> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> </h3> <xsl:value-of select="current()/description" /> </div> </xsl:for-each>
This is obvious the wrong syntax for getting the description property from the current page in the loop. Can someone pls tell me what I'm doing wrong? :)
Actually I think that should work. Otherwise, inside the loop you can use
<xsl:value-of select="./description"/>
or
<xsl:value-of select="description" />
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
select property from current() in loop
<xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) = '1']">
<div class="article">
<h3>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</h3>
<xsl:value-of select="current()/description" />
</div>
</xsl:for-each>
This is obvious the wrong syntax for getting the description property from the current page in the loop. Can someone pls tell me what I'm doing wrong? :)
Actually I think that should work. Otherwise, inside the loop you can use
or
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.