Open
Description
I found two issues when I used inside widget CMSFields
1)trying to getRecord on a no object $this->form->getRecord() in 97
2)Second it is showing tabs inside the widget
In the Widgets
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->merge(
new FieldList(
new MultiSelectField(
"ShowPages",
"",
ShowPage::get()->map('ID','Title')->toArray()
)
)
);
$this->extend('updateCMSFields', $fields);
return $fields;
}
Metadata
Metadata
Assignees
Labels
No labels