How can I make a nav button land on a subnav page?
Posted: Wed Oct 31, 2007 1:30 am
I am building a site with three levels of nav. I would like it if when someone clicked on the menu option for page 2.3, it displays the page at 2.3.1. I'd prefer a better solution that using a meta-refresh on 2.3.
The level two menu nav I built does a series of horizontally placed 2.x type tags, where the tag content is the {$node->url} (see nav2 code below)
I was confused by the idea of "section headers." I thought that might help, but it didn't--because I couldn't seem to make the menu code take the section header as a clickable $node->url
Sorry if I missed something obvious, but I'm a CMSms newb.
thanks in advance!
The level two menu nav I built does a series of horizontally placed 2.x type tags, where the tag content is the {$node->url} (see nav2 code below)
I was confused by the idea of "section headers." I thought that might help, but it didn't--because I couldn't seem to make the menu code take the section header as a clickable $node->url
Sorry if I missed something obvious, but I'm a CMSms newb.
thanks in advance!
Code: Select all
{* CSS classes used in this template:
.selected - The active page
*}
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth == 2}
{if $node->current == true}
<li><a href="{$node->url}" class="selected"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
{elseif $node->parent == true}
<li><a href="{$node->url}" class="selected"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
{elseif $node->type == 'separator'}
<li style="list-style-type: none;"> <hr class="separator" />
{else} {* basic li style *}
<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
{/if}
{/if}
{/foreach}
{/if}