Hi there,
I have a simple sidebar extension for different page types.
The SidebarContent field is shown in the admin but won't save any entries.
I checked different examples, the documentation and this forum but I cannot find the problem.
I am very grateful if one of you may help me out here :)
class SideBarExtension extends DataExtension {
static $db = array(
'SidebarContent' => 'HTMLText'
);
public function updateCMSFields(FieldList $fields) {
parent::updateCMSFields($fields);
$fields->addFieldToTab("Root.Main", new HTMLEditorField('SidebarContent','Sidebar Content'));
}
}