diff --git a/code/BlogHolder.php b/code/BlogHolder.php index 36e7e99..74aa094 100644 --- a/code/BlogHolder.php +++ b/code/BlogHolder.php @@ -28,12 +28,16 @@ class BlogHolder extends BlogTree implements PermissionProvider { ); function getCMSFields() { + SiteTree::disableCMSFieldsExtensions(); $fields = parent::getCMSFields(); + SiteTree::enableCMSFieldsExtensions(); $fields->addFieldToTab('Root.Content.Main', new CheckboxField('TrackBacksEnabled', 'Enable TrackBacks')); $fields->addFieldToTab('Root.Content.Main', new DropdownField('OwnerID', 'Blog owner', DataObject::get('Member')->toDropDownMap('ID', 'Name', 'None'))); $fields->addFieldToTab('Root.Content.Main', new CheckboxField('AllowCustomAuthors', 'Allow non-admins to have a custom author field')); + $this->extend('updateCMSFields', $fields); + return $fields; }