diff --git a/code/model/Widget.php b/code/model/Widget.php index 725a43b..dc0212a 100644 --- a/code/model/Widget.php +++ b/code/model/Widget.php @@ -78,6 +78,13 @@ class Widget extends DataObject { 'CMSTitle' => 'Title' ); + public function getCMSFields(){ + $fields = parent::getCMSFields(); + $fields->removeByName(array('Sort', 'ParentID')); + $fields->push(CheckboxField::create('Enabled')); + return $fields; + } + /** * @var WidgetController */