It must be someting very stupid, But i can't get is to work ar the moment.
<?php
/*
* _config.php
* Object::add_extension('NewsLetter', 'NewsLetterDecorator');
*/
class NewsLetterDecorator extends DataObjectDecorator {
function extraStatics() {
return array(
'defaults' => array(
"Content" => 'test',
),
);
}
function populateDefaults(){
parent::populateDefaults();
$this->owner->Content ='testtesttest';
}
It seems quite solid to me, but nothing happens... Even when I try to remove fields from tab with updateCMSFields() does not work
What am I missing?