Page 1 of 1

how i can split menu in 2 parts?

Posted: Thu Feb 12, 2009 7:21 pm
by delpi
Hello guys,

I am new here...


so, I use CMSMS, and I have one problem. I wan`t to split menu in 2 parts: one of them in header (in one orizontal menu), and the rest in left (vertical menu).
Links that appear in the first part I do not want to appear in the second, or vice versa.


Thanx alot!

Re: how i can split menu in 2 parts?

Posted: Fri Feb 13, 2009 4:25 am
by frankmanl
Hi Delpi,
Each page has a Page alias (see the Options tab in the page edit screen). Give every Page alias a prefix (hor- or vert-) and use the includeprefix parameter of the menu module. (To find out how you use that parameter go to the extensions tab in your admin screen, choose Modules and click on the Help link of MenuManager.)
In your page template you should then have lines like:

   
      Navigation
      {menu template='simple_navigation.tpl' includeprefix='hor-'}
   
   

and

     
         Sub Navigation
          {menu template='simple_navigation.tpl' includeprefix='vert-'}
     
     

Re: how i can split menu in 2 parts?

Posted: Fri Feb 13, 2009 1:21 pm
by delpi
Thanx alot, frankmanl for your support.

But, I wan't one more thing:

in the first part (with prefix hor-) i want to displey

link 1 | link 2 | link 3 | link 4 , and when I am with the mouse to one link, I want to show subcategory of link 2, or 3... etc. down..
ex: link 1
        sublink1

in the second part, i want to display

link 5
link 6
link 7

and when I am with the mouse to one link, I want to show subcategory of link 5,6 or 7... in right

ex: link 5    sublink 5
    link 6    sublink 6

Thanx!

Re: how i can split menu in 2 parts?

Posted: Sat Feb 14, 2009 4:30 am
by frankmanl
The number_of_levels parameter defines how many levels are shown.
When this parameter is not set, all levels are shown.

When you use the includeprefix parameter, be sure to give all subpages the right prefix, or they won't be included in the menu.

Use css to define the way the subpages are shown. E.g. in the Top simple navigation + left subnavigation + 1 column template the horizontal menu is limited to 1 level. When you remove the number_of_levels parameter, all levels are shown, but not as a fold-out menu. In stead they are shown all the time, which is not what you want.
You may have a look at the css for the vertical menu of that template, to see how this can be solved.

Re: how i can split menu in 2 parts?

Posted: Sun Feb 15, 2009 6:04 pm
by delpi
hm... nop, you don`t understand what I want.

so... I want in the horizontal menu to use one style (style that is used in Layout: Left sidebar + 1 column - "simple_navigation.tpl"), that appear submenu down, and in the vertical menu I want to use other style (that is used in Navigation: CSSMenu - Vertical, "cssmenu.tpl")


Thanx for reply.

Re: how i can split menu in 2 parts?

Posted: Tue Feb 17, 2009 4:49 am
by frankmanl
Yes, that's clear to me. And it is a matter of css.
First make sure that both menu's display all levels of the menu items.

Then make sure that to the horizontal menu a style is attached like the one of template CSS Menu Top + 2 columns.
And to the vertical menu one like the one of CSS Menu left + 1 column.

Maybe somebody already developed a tepmlate/heme like that? You might have a look at the themes page.

Frank

Re: how i can split menu in 2 parts?

Posted: Tue Feb 17, 2009 6:19 am
by CWebguy
If it's something that you won't change very often, you can just hand code it.

Re: how i can split menu in 2 parts?

Posted: Tue Feb 17, 2009 4:00 pm
by delpi
so, I resolved this problem..... thanx for help!