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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

SortOrder in Configuration


Go to End


981 Views

Avatar
ivo

Community Member, 19 Posts

21 July 2010 at 10:01pm

hi all, hi Uncle Cheese
i was searching for an option to define the sortorder of the images from the ImageGallery for the frontend.

thanks to the forum i set it in the config file to:
SortableDataObject::set_sort_dir("DESC");

In Model for ImageGalleryPage there is also an option for the sortOrder which is as default: SortASC.

Wouldnt it be easy to include a choice for that in the Configuration Tab?