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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...