Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba


Go to End

3 Posts   2078 Views


Community Member, 56 Posts

23 July 2010 at 10:24am

Edited: 23/07/2010 10:24am

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;


Object::add_extension('Forum', 'ForumExtender');


class ForumExtender extends DataObjectDecorator {
	function updateCMSFields(&$fields) {
		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?


Community Member, 181 Posts

23 July 2010 at 10:39pm

It's likely the tabname is incomplete, try "Root.Content.Main" instead.

If in doubt, check the corresponding addFieldToTab in forum.php to check it matches.


Community Member, 56 Posts

23 July 2010 at 10:51pm

Edited: 23/07/2010 10:51pm

Ah, well spotted. However I dont think it is a typo issue as changing it didn't work, and what I'm actually trying to do is add;

$fields->addFieldToTab("Root.Access", new TreeDropdownField("ForumPendingGroupID", "Group"));

with the same principle of the code above.