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
Is there anyway to sort on 2 different dates?
Lets say i have about 80 posts in umbraco that only contain the @createdDate,But after an update on the system. The new added posts got a new field that can contain a date you deside your self..So now i have 2 places where a date can come from.... How can i, in XSLT, sort on both dates so they are displayed in the right order?
Depends... if you're using an xsl:for-each, you can use an xsl:sort right underneath and in the select parameter of the sort you use a concat of your two fields.
If you want to use either date, you will need to divise your own way to give some sort of "order to them" and use that in the concat / xpath
Not sure if you might use a union in the sort parameter though, that might also be what you're after.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted