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,
this select work fine
<xsl:variable name="items" select="umbraco.library:GetXmlNodeById(1091)/umbNewsArticle [@isDoc and string(goal) = '1']"/>
but i have to limit the selection to 5 items!
how can i do that?thank you
You can use a variable like
<xsl:variable name="maxItem" select="5"/>
then in your wrap this in your loop
<xsl:when test="position() < $maxItem"> <li> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> </li></xsl:when>
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 with limit
hi all,
this select work fine
<xsl:variable name="items" select="umbraco.library:GetXmlNodeById(1091)/umbNewsArticle [@isDoc and string(goal) = '1']"/>
but i have to limit the selection to 5 items!
how can i do that?
thank you
You can use a variable like
<xsl:variable name="maxItem" select="5"/>
then in your wrap this in your loop
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.