17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1322 Views |
-
page types with two HTMLEditorField types do not display the label for the second one

5 August 2007 at 7:30pm
I have the following page code and while the HTMLEditor textarea for the second field displays, the label for it does not. Attached is my page code and the edit interface screenshot.
-
Re: page types with two HTMLEditorField types do not display the label for the second one

6 August 2007 at 12:30am Last edited: 6 August 2007 12:32am
HTMLEditorFields and TextareaFields don't seem to show a title unless you specify one, which is acutally pretty handy if you want a bigger space to edit in.
Adding a title parameter to HTMLEditorField will do what you want:function getCMSFields() {
$fields = parent::getCMSFields();$fields->addFieldToTab('Root.Content.Main', new HTMLEditorField('Sidebar', 'Sidebar'), 'Content');
$fields->addFieldToTab('Root.Content.Main', new CalendarDateField('Date'), 'Content');return $fields;
} -
Re: page types with two HTMLEditorField types do not display the label for the second one

6 August 2007 at 2:47am
Thanks, that seems to have done it.
| 1322 Views | ||
|
Page:
1
|
Go to Top |


