I would like to draw attention to one menu item with Menu Manager. I would like to bold the text or change the background color of the menu item on every page, not just when that page is active.
I got lost trying to understand the operating logic of Menu Manager so I am not sure if it is even possible.
With a slight hope, I tried using HTML in the menu text for the page. But, as expected it displayed the text/characters instead of interpreting them.
Have one menu item always highlighted - SOLVED
Have one menu item always highlighted - SOLVED
Last edited by tyman00 on Tue Aug 21, 2007 4:03 pm, edited 1 time in total.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Have one menu item always highlighted
Its possible.
You'll have to create a menu manager template that's a copy of the one you're using now, and modify it.
In the simple navigation templae you'd add something to the top of the big if/elseif expression like:
{if $node->alias == 'blah'}
...
{elseif ...}
You'll have to create a menu manager template that's a copy of the one you're using now, and modify it.
In the simple navigation templae you'd add something to the top of the big if/elseif expression like:
{if $node->alias == 'blah'}
...
{elseif ...}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Have one menu item always highlighted
That worked perfect, thanks!
I changed the default cssmenu.tpl file (after I made a backup of course
)
For future readers here is how I did it.
I added the bold red code to the following lines to make the text bold for that menu item.
I changed the default cssmenu.tpl file (after I made a backup of course

For future readers here is how I did it.
I added the bold red code to the following lines to make the text bold for that menu item.
Of course change the 'page-alias' text to the alias of your own page.{if $node->type != 'sectionheader' and $node->type != 'separator'}
href="{$node->url}" {if $node->alias == 'page-alias'}style="font-weight:bold"{/if} {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}>{$node->hierarchy}: {$node->menutext}
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Re: Have one menu item always highlighted - SOLVED
Thank you for sharing this.
Pierre M.
Pierre M.
Re: Have one menu item always highlighted - SOLVED
No problem! Thank you to Calguy for the fast and helpful response.
If you want to see it in action here is the link. It is under the Personal menu. Subtle, yet effective.
If you want to see it in action here is the link. It is under the Personal menu. Subtle, yet effective.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.