Page 1 of 1

How can I make a nav button land on a subnav page?

Posted: Wed Oct 31, 2007 1:30 am
by tcr
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!

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}

Re: How can I make a nav button land on a subnav page?

Posted: Wed Oct 31, 2007 4:56 pm
by Pierre M.
Hello,
tcr wrote: 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 was confused by the idea of "section headers."
Click on A to get B. Well, a bit odd to me.
Nevermind, the section header for 2.3 is a nice idea.
Or there is a Content Alias hack/module/plugin. Or moved pages, something like this.
Try to see if it feets your need.
Have fun with CMSms

Pierre M.

Re: How can I make a nav button land on a subnav page?

Posted: Wed Oct 31, 2007 10:23 pm
by Dr.CSS
For A to B you could make a Content Type: link...