Page 1 of 1

TFF in menu + color change

Posted: Thu Aug 27, 2009 7:26 pm
by jonaskhn
Hi guys,

I am running CMSMS 1.6.3. I want to use a truetype font in my menu.

I've edited the included standard simple_navigation.tpl navigation menu, so I can use truetype fonts in the menu through the text embellisher.

I have replaced all instances of

{$node->menutext}

with

{cms_module module="TruetypeText" style="menustyle" text=$node->menutext}

and it works just perfect!

Now, my question is, is there a way for the active/selected menu item to be another color? I will need to edit simple_navigation.tpl, but I don't know how. Maybe it could call another pre-defined embellisher style that uses color, called "menustyleselected"?

Any help is greatly appreciated!

Kind Regards, Jonas

Re: TFF in menu + color change

Posted: Sun Aug 30, 2009 8:33 pm
by Dr.CSS
Active is most times called in the if currentpage class of currentpage line in the menu template, since you are using the true type font thing I don't believe it has any color choices iirc it is images not actual text so color:#efgh07 won't do anything...

Re: TFF in menu + color change

Posted: Tue Sep 01, 2009 8:42 pm
by jonaskhn
Dr. CSS wrote: Active is most times called in the if currentpage class of currentpage line in the menu template, since you are using the true type font thing I don't believe it has any color choices iirc it is images not actual text so color:#efgh07 won't do anything...
Yes, you are right. The CSS is probably not going to help in changing the color.

To get another color, I will have to define a new style in the text embellisher, an text embellish with color. Then, in the menu tpl file, I will have to edit the script so that ACTIVE menus are rendered using the new text embellisher style that has color. I just don't know how to do that ...