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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

DataObjectManager: Specify Sort in Admin Area


Reply


473 Views

Avatar
DeklinKelly

Community Member, 197 Posts

4 January 2012 at 3:09pm

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);