I try to modify the template cssmenu.tpl.
I've added an accordeon menu with JQuery and i need to apply a class on an 'ul' submenu when you are in a page that belongs to this submenu. In other words I need to know if the submenu should be active or not.
Here is the code :
Code: Select all
<ul id="nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul class=\"subMenu\">" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
Code: Select all
{if $node->current == true...

Is there a way to add a class on a submenu 'ul' if an 'li' of this 'ul' has the class="menuactive"

If somebody has a solution, It would be a great help !
Thanks in advance.