Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » change the display order (solved)

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 810 Views
  • prawnstar
    Avatar
    Community Member
    116 Posts

    change the display order (solved) Link to this post

    I'd like to change the display of the blog holder to be ordered like it is in the cms tree instead of by date.

    I see in the page controller, this controls the order:

    $order = '"BlogEntry"."Date" ASC';

    What would be the syntax to list it in order like it is in the CMS? In other words, I'd like to order it by drag-n-dropping in the CMS.

    Thanks!
    Chris.b

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: change the display order (solved) Link to this post

    The default column for sorting is the Sort Field.

    $order = '"SiteTree"."Sort" ASC';

  • prawnstar
    Avatar
    Community Member
    116 Posts

    Re: change the display order (solved) Link to this post

    I do believe that worked.

    Thanks!

    Chris.b

    810 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.