Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » SortOrder in Configuration

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 624 Views
  • ivo
    Avatar
    Community Member
    19 Posts

    SortOrder in Configuration Link to this post

    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?

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