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
Hello again again,
How can i f.ex. write 5 postes in xslt - i mean, i have made a news system, and they are in a subfolder. I have made a archive witch just write all off them. I would just like to write 5. And how can i order by date?
Greetings Anders
If I understand your question correctly, I think you can do this (you may have to alter the select XPATH for your needs):
<xsl:for-each select="$currentPage//node"> <xsl:sort select="@createDate" order="descending" /> <xsl:if test="position() < 6"> Put your post markup here... </xsl:if></xsl:for-each>
This will sort the nodes newest to oldest and only show the first 5.
Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Write 5 postes and order by date
Hello again again,
How can i f.ex. write 5 postes in xslt - i mean, i have made a news system, and they are in a subfolder. I have made a archive witch just write all off them. I would just like to write 5. And how can i order by date?
Greetings Anders
If I understand your question correctly, I think you can do this (you may have to alter the select XPATH for your needs):
This will sort the nodes newest to oldest and only show the first 5.
Thanks
is working on a reply...