Page 1 of 1

Current/Active Menu Item [SOLVED]

Posted: Thu Jul 26, 2007 7:23 am
by shenalol
Hello!

I am trying to make it so that my the current menu item is clickable and the same as the rest of the menu items. I am using a CSS menu.

Could someone please tell me the steps and where I should edit these items?

A link for reference is http://www.austinfamilyinstitute.org/index.php

Re: Current/Active Menu Item

Posted: Thu Jul 26, 2007 8:58 am
by Zoorlat
1. Go to the Menu Manager, create a custom menu-template (easy done by importing one of the pre-set database templates).

2. Change your page-template so the menu uses this new menu-template

Code: Select all

{cms_module module='menumanager' template='yourMenu'}
3. In your new menu-template, look for

Code: Select all

{if $node->current == true}
there you can change the way the manu treats a current page. Probably you can simply remove that if-block and you will get what you want.

Play around with the menu-template a bit. It looks a bit tricky, but is rather straight forward and a powerfull friend once you understand it.

Re: Current/Active Menu Item

Posted: Thu Jul 26, 2007 5:55 pm
by shenalol
Zoorlat,

Thank you so much! It worked perfectly. :)