Page 1 of 1

is {$node->current} working in simple menu

Posted: Thu Dec 05, 2013 1:32 am
by userwords
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.

Re: is {$node->current} working in simple menu

Posted: Sat Dec 07, 2013 8:22 am
by JohnnyB
I don't recall having a problem with it. Just tested successfully on CMSMS 1.11.9 with

Code: Select all

{if $node->current == true} class="current"{/if}
What version are you using and can you paste the entire menu template?