21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 534 Views |
-
DataObjectDecorator on NewsLetter

6 September 2009 at 3:02am
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?
| 534 Views | ||
|
Page:
1
|
Go to Top |

