Page 1 of 1
Two types of menu: vertical and horizontal on one site
Posted: Mon Dec 11, 2006 10:38 am
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.
Re: Two types of menu: vertical and horizontal on one site
Posted: Mon Dec 11, 2006 11:45 am
by cyberman
You have only to change the menumanager call ...
Have you made a look at template "Simple navigation top + subnavigation left + 1 column

?
Re: Two types of menu: vertical and horizontal on one site
Posted: Mon Dec 11, 2006 12:20 pm
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".
Re: Two types of menu: vertical and horizontal on one site
Posted: Mon Dec 11, 2006 1:47 pm
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
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
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.
Re: Two types of menu: vertical and horizontal on one site
Posted: Tue Dec 12, 2006 7:29 am
by liudaz
Thank you very much. That was just what i wanted!

Re: Two types of menu: vertical and horizontal on one site
Posted: Thu Jan 25, 2007 11:59 am
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.
Re: Two types of menu: vertical and horizontal on one site
Posted: Sat Jan 27, 2007 4:14 pm
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...
Re: Two types of menu: vertical and horizontal on one site
Posted: Sat Jan 27, 2007 4:25 pm
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).