Ok I've been trying to add a new field to a new page for about 4hours! its driving me crazy. I'm trying to add two new fields called Amy and Tash, which are text area fields, which can be edited in the CMS...
I've cut it down to just try and get ONE to work (the 'AboutAmy' field)
<?php
class AboutUsPage extends Page {
static $db = array(
);
static $has_one = array(
'AboutAmy' => 'Text',
);
function getCMSFields( $cms ) {
$fields = parent::getCMSFields( $cms );
$fields->addFieldToTab("Root.Content.Main", new TextareaField("AboutAmy", "About Amy"))
return $fields;
}
}
class AboutUsPage_Controller extends Page_Controller {
}
?>
It shows up in the CMS fine... when you put something in the box, click save everything's fine - till you reload the page, then what ever change you made is NOT saved? Any ideas anyone?
Also - BIG UPS to the new SS site. so much nicer and easier to use, especially the new forum =)