how i can split menu in 2 parts?

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.
Post Reply
delpi
New Member
New Member
Posts: 4
Joined: Thu Feb 12, 2009 6:38 pm

how i can split menu in 2 parts?

Post 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!
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: how i can split menu in 2 parts?

Post 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-'}
     
     
delpi
New Member
New Member
Posts: 4
Joined: Thu Feb 12, 2009 6:38 pm

Re: how i can split menu in 2 parts?

Post 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!
Last edited by delpi on Fri Feb 13, 2009 1:34 pm, edited 1 time in total.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: how i can split menu in 2 parts?

Post 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.
delpi
New Member
New Member
Posts: 4
Joined: Thu Feb 12, 2009 6:38 pm

Re: how i can split menu in 2 parts?

Post 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.
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: how i can split menu in 2 parts?

Post 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
User avatar
CWebguy
Forum Members
Forum Members
Posts: 139
Joined: Thu Jul 24, 2008 3:31 am

Re: how i can split menu in 2 parts?

Post by CWebguy »

If it's something that you won't change very often, you can just hand code it.
CMSMS Made
delpi
New Member
New Member
Posts: 4
Joined: Thu Feb 12, 2009 6:38 pm

Re: how i can split menu in 2 parts?

Post by delpi »

so, I resolved this problem..... thanx for help!
Post Reply

Return to “CMSMS Core”