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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

How to use editor in the Navigation label?


Reply

3 Posts   1120 Views

Avatar
Uzenmi

22 December 2008 at 3:58am Community Member, 19 Posts

Hello,

I downloaded your software and run it to my site for a year ago. Now I have a small change and need to you help. Can you please show me how to use editor in the "Navigation label" like the "Content", its mean I can use font-size, font-color... in the "Navigation label" like the "Content"?

Thank you very much.

Avatar
Nivanka

22 December 2008 at 3:15pm Community Member, 395 Posts

you can remove the field and the replace it again with another HTMLEditor field.

with one of the following functions,

$this->fields->removeByName('MyFieldName');

$this->fields->removeFieldFromTab('TabName', 'MyFieldName');

and then you can add a HTMLEditorFiled

with the following function,

$fields->addFieldToTab('Root.Content.Main', new DropdownField('PageColor', 'Page Color', self::$colors), $this->PageColor);

read this for more [url]http://doc.silverstripe.com/doku.php?id=Form[/url]

Avatar
Uzenmi

22 December 2008 at 10:24pm (Last edited: 28 December 2008 6:05pm), Community Member, 19 Posts

Thanks very much,

And can you please show me how to insert space "   " in to the "Navigation label" ?

Thanks again,