Is it possible to override the defaults array of a page type using add_extension?
I want to use the blog module as a kind of press-archive and set ProvideComments to false without hacking the module (->future upgrades)
this is what i tried and its not working:
in mysite/_config.php:
DataObject::add_extension('BlogEntry', 'BlogEntryExtension');
in mysite/code/BlogEntryExtension.php:
class BlogEntryExtension extends DataObjectDecorator {
public static $defaults = array(
"ProvideComments" => false,
'ShowInMenus' => false
);
}