Current/Active Menu Item [SOLVED]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
shenalol

Current/Active Menu Item [SOLVED]

Post 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
Last edited by shenalol on Thu Jul 26, 2007 5:56 pm, edited 1 time in total.
Zoorlat

Re: Current/Active Menu Item

Post 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.
shenalol

Re: Current/Active Menu Item

Post by shenalol »

Zoorlat,

Thank you so much! It worked perfectly. :)
Locked

Return to “Layout and Design (CSS & HTML)”