Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » User cannot save a page which has an image

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

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

Page: 1
Go to End
Author Topic: 650 Views
  • harry_bl
    Community Member
    7 Posts

    User cannot save a page which has an image Link to this post

    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?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.