mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Re-add getCMSFields, inherit scaffolding, remove Sort & ParentID fields by default
This commit is contained in:
parent
6b67ee0ff8
commit
ba411a2eea
@ -78,6 +78,13 @@ class Widget extends DataObject {
|
|||||||
'CMSTitle' => 'Title'
|
'CMSTitle' => 'Title'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
public function getCMSFields(){
|
||||||
|
$fields = parent::getCMSFields();
|
||||||
|
$fields->removeByName(array('Sort', 'ParentID'));
|
||||||
|
$fields->push(CheckboxField::create('Enabled'));
|
||||||
|
return $fields;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var WidgetController
|
* @var WidgetController
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user