Hi I'm creating a news list and would really like to sort by and display published date instead of createdate, since newsitems often are written before they are published.
I think the best solution would be to add a field date field w. time on your news document type and make a sort on that value.
If you don't want to select the date manually every-time you make a news entry you could probably create a action-handler to do it for you automatically.
There's a property called UpdateDate - that might be what you're looking for?
A part from that I agree with Jasko that the best solution is to add a property for the news release date as you might not want it to change everytime someone publishes the doc
To add to this, when I do this the client inevitably wants to archive news as well, so creating a property for PublishDate and ArchiveDate helps a lot, then in the xslt we can do something like
Oh that sure sounds as the way to go.
A date field that automatically gets the date of the publishdate, via actionhandler, but only if the field is empty.
How do I get published date in XSLT
Hi I'm creating a news list and would really like to sort by and display published date instead of createdate, since newsitems often are written before they are published.
Is that and how is that possible?
/Rasmus
Hi Rasmus
I think the best solution would be to add a field date field w. time on your news document type and make a sort on that value.
If you don't want to select the date manually every-time you make a news entry you could probably create a action-handler to do it for you automatically.
There's a property called UpdateDate - that might be what you're looking for?
A part from that I agree with Jasko that the best solution is to add a property for the news release date as you might not want it to change everytime someone publishes the doc
To add to this, when I do this the client inevitably wants to archive news as well, so creating a property for PublishDate and ArchiveDate helps a lot, then in the xslt we can do something like
[code]
oh, and something like this for sort
[code]
[/code]
Oh that sure sounds as the way to go.
A date field that automatically gets the date of the publishdate, via actionhandler, but only if the field is empty.
Thx
is working on a reply...