is {$node->current} working in simple menu
Posted: Thu Dec 05, 2013 1:32 am
because this is not working for me
{elseif $node->current == true}
<li class="currentpage"><h3><span>{$node->menutext}</span></h3>
Im modifing this menu and need the current css class but it is not working.
ive put a paragraph to see what value has and shows a number 1 on the current page.
but neither this
{elseif $node->current == true}
nor this
{elseif $node->current == '1'}
works
Ive tried with {$node->parent} to see if it works the same and this one dont give any value even in a paragraph although in the menu the class parent seems working.
Could you explain me what is this all this about.
{elseif $node->current == true}
<li class="currentpage"><h3><span>{$node->menutext}</span></h3>
Im modifing this menu and need the current css class but it is not working.
ive put a paragraph to see what value has and shows a number 1 on the current page.
but neither this
{elseif $node->current == true}
nor this
{elseif $node->current == '1'}
works
Ive tried with {$node->parent} to see if it works the same and this one dont give any value even in a paragraph although in the menu the class parent seems working.
Could you explain me what is this all this about.