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
I have searched a lot for a clear answer. But I think I have to ask: How do I view 8 random nodes from a variable parent?
Thank you...
Okay, now I got my XSLT to view the nodes. What I need now is so view only 8 of them and in random order.
<xsl:for-each select="umbraco.library:GetXmlNodeById(@parentID)/*"> <p> <a href="/skiferie?stay={@nodeName}"><xsl:value-of select="@nodeName" /></a></p></xsl:for-each>
This is getting wired...
<xsl:for-each select="umbraco.library:GetXmlNodeById(@parentID)/*"> <xsl:if test="position() < 8"> <p> <a href="/skiferie?stay={@nodeName}"><xsl:value-of select="stayName" /></a></p> </xsl:if> </xsl:for-each>
That doesn't return enything... If I remove the if-test, I get all the content I need (and more).
Any one who has an idea?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get specific number of random nodes from a variable parent
I have searched a lot for a clear answer. But I think I have to ask: How do I view 8 random nodes from a variable parent?
Thank you...
Okay, now I got my XSLT to view the nodes. What I need now is so view only 8 of them and in random order.
<xsl:for-each select="umbraco.library:GetXmlNodeById(@parentID)/*">
<p>
<a href="/skiferie?stay={@nodeName}"><xsl:value-of select="@nodeName" /></a></p>
</xsl:for-each>
This is getting wired...
<xsl:for-each select="umbraco.library:GetXmlNodeById(@parentID)/*">
<xsl:if test="position() < 8">
<p>
<a href="/skiferie?stay={@nodeName}"><xsl:value-of select="stayName" /></a></p>
</xsl:if>
</xsl:for-each>
That doesn't return enything... If I remove the if-test, I get all the content I need (and more).
Any one who has an idea?
is working on a reply...