Hello Silverstripe Community,
Ok, I have tried debugging this problem although I know its probably something silly. I want to extend (forum) module so I can customise it and easily keep uptodate from SVN. I have something like;
_config.php
Object::add_extension('Forum', 'ForumExtender');
ForumExtender.php
class ForumExtender extends DataObjectDecorator {
function updateCMSFields(&$fields) {
$fields->removeFieldFromTab("Root.Content","Moderators");
Debug::show('Hello World!');
}
}
I know the function is running because of the debug message, but the FieldSet is not being updated. I presume its running in the wrong order? Is there anything I can do to override this? Or should I be doing this a different way?