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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
tcr

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

Post 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}
Pierre M.

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

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

For A to B you could make a Content Type: link...
Locked

Return to “CMSMS Core”