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.

General Questions /

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

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

How to use editor in the Navigation label?


Go to End


3 Posts   2258 Views

Avatar
Uzenmi

Community Member, 19 Posts

22 December 2008 at 3:58am

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

Community Member, 400 Posts

22 December 2008 at 3:15pm

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 http://doc.silverstripe.com/doku.php?id=Form

Avatar
Uzenmi

Community Member, 19 Posts

22 December 2008 at 10:24pm

Edited: 28/12/2008 6:05pm

Thanks very much,

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

Thanks again,