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.

Blog Module /

Discuss the Blog Module.

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

change the display order (solved)


Reply


3 Posts   871 Views

Avatar
prawnstar

Community Member, 127 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, 5513 Posts

25 July 2010 at 4:15pm

The default column for sorting is the Sort Field.

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

Avatar
prawnstar

Community Member, 127 Posts

26 July 2010 at 10:26am

I do believe that worked.

Thanks!

Chris.b