Hi there,
What I'm looking to do is be able to have different menu options visible depending on what section of the site your in.
I have 4 sections:
Main Page
Group Benefits
Personal
Investments
I would like to have only the 4 main sections visible as links on the menu bar for the "home/main" page. Once inside the site I would like to have each section display it's own menu.
Main Page menu would have these options:
1. Home, 2. Group Benefits, 3. Personal, 4. Investments
If you went to Group Benefits you would then have:
>>1. Home, 2. Life Insurance, 3. Medical Plans, 4. Disability
Can anyone tell me if this is possible? And if so, how. I'm fully capable with CSS & HTML but am new to everything else, and can be easily confused with some of the way the menumanager works etc. Currently I have the bMenu module running as I found it easier to use.
I've already found the 'sectionimage' plugin which displays an image based on section, so I'm just wondering if it's possible to do something similar with menus.
Thanks!!
Display Section Dependant Menus??
Re: Display Section Dependant Menus??
ye you can do that
use subnavigation
ive done this before
first create your top level pages ie.. the 4 main pages and have a horizontal nav for them
here is the menu template code for the horizontal
heres the code i used for the vertical nav
now in you need to edit your teamplate
here is the code you will need for horizontal
{cms_module module='menumanager' template='bulletmenu' number_of_levels='1' template='whateveryounamedyourhorizontalmenutemplate'}
and on the side bar of the template add
{cms_module module='menumanager' template='whateveryounamedyourverticalmenutemplate' start_level='2' collapse='1'}
then since the main navigation has levels= to 1 it will NOT drop down and your sub categories or sub pages will display vertically on the side of each page that it is under
and whala
you can see this in action here
luscombe.org
and view the css if that helps you
feel free to use my css
good luck and happy coding!
use subnavigation
ive done this before
first create your top level pages ie.. the 4 main pages and have a horizontal nav for them
here is the menu template code for the horizontal
next you need to create a vertical nav for the secondary nav on the pages{* CSS classes used in this template:
.active - The active page in the horizontal menu (first level).
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}
{elseif $node->index > 0}
{/if}
{if $node->current == true or $node->parent == true}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{elseif $node->type == 'sectionheader'}
url}">{$node->menutext}
{elseif $node->type == 'separator'}
{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}{/if}
{/foreach}
{repeat string="" times=$node->depth-2}
{/if}
heres the code i used for the vertical nav
{* CSS classes used in this template:
.current - The current page in the vertical (local) menu.
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}
{elseif $node->index > 0}
{/if}
{if $node->current == true}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{elseif $node->type == 'sectionheader'}
{$node->menutext}
{elseif $node->type == 'separator'}
{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}{/if}
{/foreach}
{repeat string="" times=$node->depth-2}
{/if}
now in you need to edit your teamplate
here is the code you will need for horizontal
{cms_module module='menumanager' template='bulletmenu' number_of_levels='1' template='whateveryounamedyourhorizontalmenutemplate'}
and on the side bar of the template add
{cms_module module='menumanager' template='whateveryounamedyourverticalmenutemplate' start_level='2' collapse='1'}
then since the main navigation has levels= to 1 it will NOT drop down and your sub categories or sub pages will display vertically on the side of each page that it is under
and whala
you can see this in action here
luscombe.org
and view the css if that helps you
feel free to use my css

good luck and happy coding!
Re: Display Section Dependant Menus??
What if you don't want a side bar with second level menu, but when you select one from the top navigation your top navigation is replaced by the second level menus?
Re: Display Section Dependant Menus??
Please have a look at the sample content of a fresh installation ("how CMSms works", "templates", menu manager"...). Then on the themes site.
Pierre M.
Pierre M.
Re: Display Section Dependant Menus??
This is almost exactly what I was meaning!! You put it very concisely. The only difference would be that I want to have it based not only on how deep you are in the site, but also which section you're in. So only the 2.1, 2.2, 2.3 links would show up on page 2, and only the 3.1, 3.2, 3.3 links would show up on page 3.webform wrote: What if you don't want a side bar with second level menu, but when you select one from the top navigation your top navigation is replaced by the second level menus?
I've tried looking through the documentation and didn't find instructions on how to do this. I understand how to create the side bar with the second level nav. Also, I'm currently running the newest stable release version.Pierre M. wrote: Please have a look at the sample content of a fresh installation ("how CMSms works", "templates", menu manager"...). Then on the themes site.
Pierre M.