Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

[Solved] Multiple "Content-Areas" in admin interface?


4 Posts   5176 Views


28 May 2008 at 4:47am (Last edited: 28 May 2008 7:48am), Community Member, 21 Posts

Is there a solution to provide multiple content - boxes to the one using the admin interface for text editing with the wysiwyg-editor?

The documentation for the fields which can be defined was looking good for the first moment and I was trying with field type "HTMLText" but this one just offers a one line input field for html code.

Any ideas?
Thanks for your help.


28 May 2008 at 6:51am Community Member, 7 Posts

You have to add an HTML editor field to the editor too, instead of a TextField in your getCMSFields() method, ie.

$fields->addFieldToTab('Root.Content.Main', new HtmlEditorField('YourFieldName','More content'));


28 May 2008 at 7:49am Community Member, 21 Posts

Thanks a lot.

This hint was the solution.


21 October 2008 at 7:47am Community Member, 9 Posts

This is exactly what I was looking for, thanks!

For anyone who is unsure of where to place this, here is a portion of my 'CareerPage.php' (located within mysite/code):

class CareerPage extends Page {
   static $db = array(
      'Requirements' => 'HTMLText'
   static $has_one = array(
   function getCMSFields() {
      $fields = parent::getCMSFields();
      $fields->addFieldToTab('Root.Content.Main', new HtmlEditorField('Requirements', 'Job Requirements'));
      return $fields;