I've seen a few other posts with this problem, but no real solution and I'm really beginning to pull my hair out. I've added a second HtmlEditorField editor field to the CMS for entering testimonials, but the content that is added in the cms doesn't display in the web page.
My .php page is as follows:
class CoursesPage extends Page {
static $db = array(
);
static $has_one = array(
'Photo' => 'Image',
'Testimonials' => 'HTMLText'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Images", new ImageField('Photo'));
$fields->addFieldToTab('Root.Content.Main', new HtmlEditorField('Testimonials', 'Add Testimonials'));
return $fields;
}
}
class CoursesPage_Controller extends Page_Controller {
}
My .ss is as follows:
<div id="Testimonials" style="float: right; width: 180px; border: 1px solid #ccc">
$Testimonials
</div>
I've flushed and rebuilt but to no avail. The Image tab show above does however work ok.
PLEASE HELP!