Hi All,
I tried the following tutorial:
http://doc.silverstripe.com/doku.php?id=imageupload
but it doesn't seem to work, no images are uploaded.
The indexes are created and present in the table for the page type, and images can be uploaded via Files/Uploads, so that works as well.
my code:
...
static $has_one = array(
'LeftAd' => 'Image',
'LeftBottomAd' => 'Image'
);
...
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.LeftAdvertisement', new SimpleImageField('LeftAd', 'Left Top Ad'));
...
$fields->addFieldToTab('Root.Content.LeftAdvertisement', new SimpleImageField('LeftBottomAd', 'Left Bottom Ad'));
...
return $fields;
}
any clues???
I'm using daily build version from Monday 1st September