'VarChar' ,'ObjectDescription' => 'Text' ,'RelatedCategories' => 'MultiValueField' ,'SortOrder' => 'Int' ); public static $default_sort = 'SortOrder'; private static $has_one = array( 'ObjectImage' => 'Image', 'SortableObjectSection' => 'SortableObjectSection' ); private static $summary_fields = array( 'ObjectTitle' ); public function getCMSFields() { $fields = parent::getCMSFields(); $fields->fieldByName('Root.Main.ObjectImage') ->getValidator()->setAllowedExtensions(array('jpg', 'png')); $fields->removeFieldFromTab('Root.Main','SortOrder'); $parentCategories = $this->SortableObjectSection()->Categories->Value; $categoriesField = new MultiValueCheckboxField('RelatedCategories', 'Related Categories', $parentCategories); $fields->addFieldToTab('Root.Main', $categoriesField); return $fields; } }