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.

Blog Module /

Discuss the Blog Module.

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

change the display order (solved)


Go to End


3 Posts   1350 Views

Avatar
digibrains

Community Member, 130 Posts

25 July 2010 at 12:14pm

Edited: 26/07/2010 10:26am

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

Avatar
Willr

Forum Moderator, 5523 Posts

25 July 2010 at 4:15pm

The default column for sorting is the Sort Field.

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

Avatar
digibrains

Community Member, 130 Posts

26 July 2010 at 10:26am

I do believe that worked.

Thanks!

Chris.b