Jump to:

1036 Posts in 810 Topics by 315 members

Forum Module

SilverStripe Forums » Forum Module » Change sort order in Forum

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 1114 Views
  • WalterW
    Avatar
    Community Member
    18 Posts

    Change sort order in Forum Link to this post

    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)?

  • WalterW
    Avatar
    Community Member
    18 Posts

    Re: Change sort order in Forum Link to this post

    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.

    1114 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.