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
209c13637a
@ -92,6 +92,12 @@ class Widget extends DataObject {
|
||||
return $this->renderWith("WidgetHolder");
|
||||
}
|
||||
|
||||
public function getCMSFields(){
|
||||
$fields = parent::getCMSFields();
|
||||
$fields->removeByName(array('Sort', 'ParentID'));
|
||||
return $fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default way to render widget in templates.
|
||||
* @return string HTML
|
||||
|
Loading…
Reference in New Issue
Block a user