Two types of menu: vertical and horizontal on one site

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
liudaz

Two types of menu: vertical and horizontal on one site

Post by liudaz »

Hello,

I am doing a research, weather CMS made Simple is a good CMS for the website, that i need to make. I have found very good modules, that i will use, but one very important thing i couldn't see in any of the examples, templates etc. that i could find on the internet.

The thing is, that i need to make a combination of two layouts. i need to have "Left simple navigation" on the left and " CSSmenu TOP" navigation at the top on one site on all pages (for example like on www.lvjc.lt site).
I guess it is possible to do so on CMSMS, but i am struggleing with it.
Could somebody poin out some steps, url's or just help me on how i could get that result?

Thank you very much.
cyberman

Re: Two types of menu: vertical and horizontal on one site

Post by cyberman »

You have only to change the menumanager call ...

Have you made a look at template "Simple navigation top + subnavigation left + 1 column :) ?
liudaz

Re: Two types of menu: vertical and horizontal on one site

Post by liudaz »

Yes, i've checed "Simple navigation top + subnavigation left + 1 column".. but it is not what i really need. The name for the template that i desire would probably be "CSS navigation top + left simple navigation + 1 column"  :)

And if i change (don't know how to change yet) the manu manager call, will i be able to show in the admin panel, where the content goes? I mean, weather the menu selection has to go to the horizontal menu, or to the vertical menu?


BTW, i forgot to metion, i am using "cmsms-mle-1.0.2-build4".
cyberman

Re: Two types of menu: vertical and horizontal on one site

Post by cyberman »

liudaz wrote: don't know how to change yet
You have to go to layout > templates, open "Simple navigation top + subnavigation left + 1 column" and change

Code: Select all

{menu template='simple_navigation.tpl' number_of_levels='1'}
to

Code: Select all

{menu template='cssmenu.tpl'}
I mean, weather the menu selection has to go to the horizontal menu, or to the vertical menu?
That's the next story :). Create two top level pages (e.g. hmenu and vmenu). Then you can decide where the page has to go ... all pages you want to show must be children of one of these top levels.

Change

Code: Select all

{menu template='cssmenu.tpl'}
to

Code: Select all

{menu template='cssmenu.tpl' start_level='2' start_element='1.1' show_root_siblings='1'}
for horizontal menu and

Code: Select all

{menu template='simple_navigation.tpl' start_level='2' collapse='1'}
to

Code: Select all

{menu template='simple_navigation.tpl' start_level='2' start_element="2.1" show_root_siblings='1'}
for vertical menu. Only the children of hmenu or vmenu should be shown now.
Last edited by cyberman on Mon Dec 11, 2006 1:52 pm, edited 1 time in total.
liudaz

Re: Two types of menu: vertical and horizontal on one site

Post by liudaz »

Thank you very much. That was just what i wanted!  ;)
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Two types of menu: vertical and horizontal on one site

Post by saltydog »

..how I have to modify simple_navigation.tpl in this case, to have the same behaviour as before? I mean, now all the vertical menu starts from level 2, so the menu is not shown as it was.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Two types of menu: vertical and horizontal on one site

Post by Dr.CSS »

The "simple_navigation.tpl" just tells the menu manager what/how to assign the different variables to the ul li of the menu...

The levels or which pages you want to show are controlled by the tag calls, you will find an explanation of the diff. calls in Extensions > Modules click on the modules name or 'Help' across from the module to find parameters they take...
saltydog
Power Poster
Power Poster
Posts: 281
Joined: Fri Mar 04, 2005 9:06 am

Re: Two types of menu: vertical and horizontal on one site

Post by saltydog »

mark wrote: The "simple_navigation.tpl" just tells the menu manager what/how to assign the different variables to the ul li of the menu...

The levels or which pages you want to show are controlled by the tag calls, you will find an explanation of the diff. calls in Extensions > Modules click on the modules name or 'Help' across from the module to find parameters they take...
Got it! Thank you very much!  (I had to delete the extra in the topmenu template).
Locked

Return to “Layout and Design (CSS & HTML)”