Wednesday 27 February 2008 12:29:14 pm
{set $a_class = cond($current_node_in_path_3|eq($subitem.node_id), array("selected"), array())}
We have used this in combination with:
{if $a_class} class="{$a_class|implode(" ")}"{/if}
in the definition of the menu item <li> to achieve this effect. It depends on a few other variables being set (or changed to reflect your situation), but the result should be the class='selected' being applied to all of the items in the menu that are part of the current path.
http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions
|