[SOLVED] contents show with haschildren
Posted: Sun Jan 08, 2012 2:02 pm
Hi,
I have a box qith my menu (level 2) it works fine, but i dont want it to show when there is no level 2 menu for de node.
I searched in the forum but all I find appears to more complex than this issue.
here is the code i used - but its not working:
I saw in the forum the term :"$currentNode" but i could not find the doc for this.
I dont know if I can use something like $this.node - Im new with this
I would apreciate some directions, thank you.
I have a box qith my menu (level 2) it works fine, but i dont want it to show when there is no level 2 menu for de node.
I searched in the forum but all I find appears to more complex than this issue.
here is the code i used - but its not working:
Code: Select all
{if $node->haschildren == true}
<h1>Tópicos</h1>
<div class="left-box">
{menu start_level="2"}
</div>
{/if}
I dont know if I can use something like $this.node - Im new with this
I would apreciate some directions, thank you.