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:

Blog Module /

Discuss the Blog Module.

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

remove extra fields in cms for blog tree

Go to End

2 Posts   1442 Views


Community Member, 10 Posts

20 June 2013 at 1:03pm

Hi All,

I have this strange issue with updateCMSFields() for blog tree. I try to remove some fields in the cms for blog tree page type. I am using 0.6.0, and I noticed in BlogTree.php, there is no SiteTree::disableCMSFieldsExtensions() and SiteTree::enableCMSFieldsExtensions() being called around the parent::getCMSFields() method. I added those and of course, I added $this->extend('updateCMSFields', $fields) right before returning the fields.

In the extension, I just use normal removeByName() just like what I did in BlogHolder and BlogEntry extensions. And I surely added entries in the _config.php file. The strange thing is BlogHolder and BlogEntry extensions work as expected, only BlogTree extension doesn't seem to do nothing!

Thanks in advance! This is really driving me crazy.



Community Member, 10 Posts

20 June 2013 at 2:34pm

Edited: 20/06/2013 2:34pm

Solved! The 0.6.0 version uses an extension inside the widget directory, rather than using my own extension class.