Page 1 of 1

Problem with News "sort by expiry date"

Posted: Sat Nov 03, 2007 10:26 am
by slooodge
Hi,
I am using the news module as a calendar and would like to have the items sorted by the expiry date. Somehow this does not work?
In the backend the news are actually sorted but not in the frontend?!?

Has anyone any idea what the problem could be?

THANKS, Hannes

Re: Problem with News "sort by expiry date"

Posted: Sat Nov 03, 2007 5:49 pm
by calguy1000
Okay, i checked it out, and it is possible to do, but the documentation didn't say it:

Code: Select all

{news sortby='end_time'}
will sort in descending order by the end_time (or expiry date).
   

Code: Select all

{news sortby='end_time' sortasc='true'}
will display the above listing reversed.  I've changed the help string, and News 2.6 will be released tomorrow.

Re: Problem with News "sort by expiry date"

Posted: Sat Nov 03, 2007 10:28 pm
by slooodge
Hi,
thanks for the quick reply. It works just fine!

Thanks for the great support, Hannes :)