Hi, I'm trying to extend the ForumRole as described here http://doc.silverstripe.org/modules:forum.
However with the code below (and DataObject::add_extension('Member', 'CustomForumRole'); in _config.php), the form on the front-end (ForumMemberProfile/edit) is not being updated
<?php
class CustomForumRole extends DataObjectDecorator {
function extraStatics() {
return array(
'db' => array(
'CustomDatabaseField' => 'Text',
)
);
}
function getForumFields() {
$fieldset = new FieldSet(
new TextareaField('CustomDatabaseField')
);
return $fieldset;
}
function updateCMSFields(&$fields) {
$tabset = $fields->findOrMakeTab('Root.Main');
$tabset->push(new TextareaField('CustomDatabaseField'));
}
}
?>
What is missing?