Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

User cannot save a page which has an image


Go to End


945 Views

Avatar
harry_bl

Community Member, 7 Posts

14 October 2008 at 12:46am

Hi all,

I have added the following to the page type ('Page.php').

static $has_one = array(
'Photo' => 'Image'
);

function getCMSFields() {
$fields = parent::getCMSFields();

$fields->addFieldToTab("Root.Content.Images", new ImageField('Photo'));

return $fields;
}

After I have done this, a user who have not full administrative rights can't add a page to the CMS.

Does anyone have ideas?