Here is my code:
class HowPage extends Page {
static $db = array(
'item1Title' => 'Text',
'item1Content' => 'HTMLText',
'item2Title' => 'Text',
'item2Content' => 'HTMLText',
'item3Title' => 'Text',
'item3Content' => 'HTMLText',
'item4Title' => 'Text',
'item4Content' => 'HTMLText',
'item5Title' => 'Text',
'item5Content' => 'HTMLText',
);
static $has_one = array(
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content', new TabSet('PointOne'));
$fields->addFieldToTab('Root.Content', new TabSet('PointTwo'));
$fields->addFieldToTab('Root.Content', new TabSet('PointThree'));
$fields->addFieldToTab('Root.Content', new TabSet('PointFour'));
$fields->addFieldToTab('Root.Content', new TabSet('PointFive'));
$fields->addFieldToTab("Root.Content.PointOne.Title", new TextField('item1Title','Title'));
$fields->addFieldToTab("Root.Content.PointOne.Content", new HTMLEditorField('item1Content','Content'));
$fields->addFieldToTab("Root.Content.PointTwo.Title", new TextField('item2Title','Title'));
$fields->addFieldToTab("Root.Content.PointTwo.Content", new HTMLEditorField('item2Content','Content'));
$fields->addFieldToTab("Root.Content.PointThree.Title", new TextField('item3Title','Title'));
$fields->addFieldToTab("Root.Content.PointThree.Content", new HTMLEditorField('item3Content','Content'));
$fields->addFieldToTab("Root.Content.PointFour.Title", new TextField('item4Title','Title'));
$fields->addFieldToTab("Root.Content.PointFour.Content", new HTMLEditorField('item4Content','Content'));
$fields->addFieldToTab("Root.Content.PointFive.Title", new TextField('item5Title','Title'));
$fields->addFieldToTab("Root.Content.PointFive.Content", new HTMLEditorField('item5Content','Content'));
return $fields;
}
}
class HowPage_Controller extends Page_Controller {
}
Funny thing is I haven't touched this page. What I have done is upgrade to SS 2.3.0 and migrated everything to a host. The database came across fine as there is old information in it that displays on the page fine. I just cant see any fields in the CMS to update the information. It's a weird prob!