
I am trying to make a menu for my website, and at the moment i only need to know, how i can print the subpages on <div id="menulist">
i am trying to do so, by setting if depth==2
but i cant due to the if depth==1.... any ideas?
Code: Select all
{if $count > 0}
<div id="menubarouter">
<div id="menubar">
{foreach from=$nodelist item=node}
{if $node->haschildren}
<div class="slidedown" id="qc1">
<div class="slidetopic">
{$node->menutext}
{$underside=true}
<span style="color: #FFA500">▼</span>
<div class="list" id="a1">
<div id="menulist">
<!-- this is where i am trying to print depth 2 -->
{if $node->depth==2}
<li>{$node->menutext}</li>
{/if}
</div>
<hr class="qc1">
</div>
<hr class="qc1">
</div>
</div>
{/if}
{/foreach}
</div>
</div>
{/if}