Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Forum Module /

Discuss the Forum Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Change sort order in Forum


Go to End


2 Posts   2032 Views

Avatar
WalterW

Community Member, 18 Posts

10 November 2009 at 12:50am

Edited: 27/11/2009 7:17am

I would like to change the order of the posts to descending order.

I tried to change the code in forum.php from

function Posts($order = "ASC")

to

function Posts($order = "DESC")

This seems to work, but is there some more elegant way to do this (maybe _config.php)?

Avatar
WalterW

Community Member, 18 Posts

27 November 2009 at 7:18am

I changed back to previous order (newest at the end), as it is much more complicated to change the sort order in any place of the forum code.