Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DataObjectManager: Specify Sort in Admin Area

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: 378 Views
  • DeklinKelly
    Avatar
    Community Member
    196 Posts

    DataObjectManager: Specify Sort in Admin Area Link to this post

    How can I get this to sort by "Food Name"?

    $obj = new SiteConfig_DataObjectManager(
    $this->owner,
    'Food',
    'Food',
    array('Plant'=>'Plant','FoodName'=>'Food Name'),
    'getCMSFields_forPopup'
    );
    $obj->setSourceID($this->owner->ID);
    $obj->setAddTitle("Food Pages");
    $fields->addFieldToTab("Root.Content.Custom", $obj);

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