Hey all,
I've added a new field to the mysite/code/Page.php file and it built fine, but when I try to populate the field with data in the admin area it says it updates but doesn't save the data to the database table. Have I setup the code correctly? Sound like anything obvious?
class Page extends SiteTree {
public static $db = array(
);
public static $has_one = array(
'GoogleMapAddress' => 'Text'
);
public function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new TextField('GoogleMapAddress', 'Google Map Address'), 'Content');
return $fields;
}
}
Thanks