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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Updating Format DropDown List


Go to End


2006 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.