Help With Navigation
Posted: Sat Apr 28, 2007 10:25 am
Ok, my navigation is REALLY easy.
I need/want to take what I have here and just make it show that it doesn't show the child nodes. I have a menu on the side of the page that has the child nodes in it so this one I do not want to show them. Any help is appreciated.
And for this one below, I want to show the children links pushed over a bit.
Example child link:
Thank you!
Code: Select all
<div id="wrap"><div id="header"><ul>
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->current == true and $node->child == false}
<li><a href="{$node->url}"><span>{$node->menutext}</a></il>
{/if}
{/foreach}
{/if}
</ul></div></div>
And for this one below, I want to show the children links pushed over a bit.
Code: Select all
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->current == true}
<tr><td class="nav_body" style="background-color:#dadada;"><img border="0px" height="16px" src="images/bullet.gif" width="20px" /> {$node->menutext}</td></tr>
{elseif $node->parent == true}
<tr><td class="nav_body"><img border="0px" height="16px" src="images/bullet.gif" width="20px" /> <a href="{$node->url}">{$node->menutext}</a></td></tr>
{else}
<tr><td class="nav_body"><img border="0px" height="16px" src="images/bullet.gif" width="20px" /> <a href="{$node->url}">{$node->menutext}</a></td></tr>
{/if}
{/foreach}
{/if}
Code: Select all
<tr><td class="nav_body"><img border="0px" height="16px" src="images/bullet.gif" width="20px" /> <a href="{$node->url}">{$node->menutext}</a></td></tr>