Hi all,
I've added an image to the Page class, but in the admin I can't select an image.
The dropdown combo in the admin won't expand, and I can't see any javascript errors. It's not styled properly either btw, see attached image.
The image is uploaded and it exists in the Files table. I've used a fresh, downloaded 3.0.3 install.
Here's the Page class:
class Page extends SiteTree {
public static $db = array();
public static $has_one = array(
'BackgroundImg' => 'Image',
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Main", new ImageField('BackgroundImg'));
return $fields;
}
}
Am I doing something wrong?
Best regards,
Ronald van Raaphorst