21300 Posts in 5735 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 919 Views |
-
How to use editor in the Navigation label?

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.
-
Re: How to use editor in the Navigation label?

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
-
Re: How to use editor in the Navigation label?

22 December 2008 at 10:24pm Last edited: 28 December 2008 6:05pm
Thanks very much,
And can you please show me how to insert space "Â " in to the "Navigation label" ?
Thanks again,
| 919 Views | ||
|
Page:
1
|
Go to Top |


