Hello all,
i have a little problem on my mind. a time ago did i intergrade a option for a customer that he can upload an image on every page for the header.
there for did i need to edit the mysite/code/page.php and add this
public static $has_one = array(
'HeaderImage' => 'Image'
);
function getCMSFields() {
$fields = parent::getCMSFields();
if(!$this->Parent){
$fields->addFieldToTab("Root.Content.Main", new ImageField('HeaderImage'));
}
return $fields;
}
in the template file i only had to set $HeaderImage.
Now i want te make it work for an Flash animation but changing "'HeaderImage' => 'Image'" to "'HeaderImage' => 'Flash'" Or SWF, wont work.
is there someone who can help me with this?
Thanks
Ronald