17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 554 Views |
-
User cannot save a page which has an image

14 October 2008 at 1:22am
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?
| 554 Views | ||
|
Page:
1
|
Go to Top |

