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.

Archive /

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

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

Updating Format DropDown List


Reply


1120 Views

Avatar
wdi2

Community Member, 10 Posts

10 December 2008 at 12:40am

Edited: 10/12/2008 12:43am

Hi,

I am trying to update the Format DropDown List (v2.3.0-rc2)

I have tried the following

Updating the following code in sapphire/forms/HtmlEditorField.php

new HtmlEditorField_dropdown("FormatBlock", "formatSelect", array(
"<p>" => _t('HtmlEditorField.FORMATP', "Paragraph", PR_MEDIUM, '<p> tag'),
"<h1>" => _t('HtmlEditorField.FORMATH1', "Heading 1rr", PR_MEDIUM, '<h1> tag'),
.
.
.
My Updates
.
.
.


Updating the following code in sapphire/lang/en_US.php

$lang['en_US']['HtmlEditorField']['FORMATADDR'] = array(
   'Address',
   PR_MEDIUM,
   '<address> tag'
);
$lang['en_US']['HtmlEditorField']['FORMATH1'] = array(
   'Heading 1',
   PR_MEDIUM,
   '<h1> tag'
);
.
.
.
My Updates
.
.
.


Making changes to either or both of these does not make any difference to the contents of the Format dropdown.

Would anyone have any idea what needs to be done to update the format dropdown, or what I am doing wrong? I am using silverstripe version V2.3.0-rc2.

Many Thanks.