21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 114 Views |
-
Can't select an image using ImageField

13 December 2012 at 12:34am
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
| 114 Views | ||
|
Page:
1
|
Go to Top |

