Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Updating Format DropDown List

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

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

Page: 1
Go to End
Author Topic: 1051 Views
  • wdi2
    Avatar
    Community Member
    10 Posts

    Updating Format DropDown List Link to this post

    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.

    1051 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.