Page 1 of 1

Two horizontal navigation menus: main, and "administrative"

Posted: Fri Jul 20, 2007 10:39 am
by justinae
I am trying to set up two separate horizontal menus similar to the one at UPS: http://www.ups.com/?Site=Corporate&cook ... Cookie=yes

I have looked on the forum and found similar items but not this exactly. The main navigation will have drop down menus and the "administrative" menu will not, but they will be content pages. They will be links like "contact us" and "about us".

You can see my work in progress here: http://www.buildlocal.org/index.php

My stats:
MySQL 5
CMSMS 1.1

much appreciated. I started off with Joomla, then tried ModX, and now am firmly settled on CMSMS.
Justin

Re: Two horizontal navigation menus: main, and "administrative"

Posted: Fri Jul 20, 2007 11:02 am
by RonnyK
Justin,

You can call the menu as often as you want in your template. I've done somthing similar on test.krijt.eu.  On the second menu, you can call a specific parent and on the first menu, you can call the rest.

I call the 2 horizontal menus as follow:

Code: Select all

   </div>
      <h2 class="accessibility">Navigation</h2>
      {menu template='simple_navigation.tpl' number_of_levels='1'}
   <hr class="accessibility" />
   </div>
   <div id="menu_horiz2">
      {menu template='extra-menu'  start_page='hd-menu' show_all='1'}
   <hr class="accessibility" />
   </div>   
You might want to use the cssmenu.tpl instead.

Ronny

Re: Two horizontal navigation menus: main, and "administrative"

Posted: Fri Jul 20, 2007 7:54 pm
by justinae
Thanx. Is there some of your code missing? Would you be willing to share the whole template and css code?

Re: Two horizontal navigation menus: main, and "administrative"

Posted: Tue Jul 24, 2007 9:59 pm
by justinae
I still have not found a solution. So far all my pages still show up in the main horizontal menu.

Any help is greatly appreciated as this is the last piece of the puzzle for me.

Re: Two horizontal navigation menus: main, and "administrative"

Posted: Wed Jul 25, 2007 3:09 am
by savagekabbage
If the secondary menu will always have the same links, you can just hard code it.  Nothing wrong with that.

Otherwise your best bet would be to make sure all of those pages are under the same parent.

Re: Two horizontal navigation menus: main, and "administrative"

Posted: Wed Jul 25, 2007 5:10 pm
by justinae
that is a good thought, however I want my client to be able to add, edit, or remove those "admin" links without having to mess with the template.

I'll try putting them all under a parent page (with no content) that says "Admin".

Re: Two horizontal navigation menus: main, and "administrative"

Posted: Wed Jul 25, 2007 6:14 pm
by justinae
solved.

i created a page called "admin" and used section header instead of content. i unchecked put in menu and placed all the pages i wanted under this page.

i then used the following to call the menu:

Code: Select all

<div id="menu_horiz">
{menu template='simple_navigation.tpl' start_page='admin'}
   </div>
thanx for the help.

Re: Two horizontal navigation menus: main, and "administrative"

Posted: Mon Aug 06, 2007 2:02 pm
by jasminetea
Hi Justinea,
Thanks for post. V. Helpful. I got as far as you and it works fine. Is there anyway of controlling the format. My Problem. I do not want this second horizontal nav to have the same format as the primary. Did you find a way around it?

Cheers,
JT

Re: Two horizontal navigation menus: main, and "administrative"

Posted: Mon Aug 06, 2007 2:08 pm
by RonnyK
If you rename the "" to something else, say "" . Copy the stylesheet for the navigation to a new stylesheet, and then rename all "menu_horiz", to the new "menu_horiz2", in that copied stylesheet. You can then style the other menu differently than the first one.

Ronny

[SOLVED] Re: Two horizontal navigation menus: main, and "administrative"

Posted: Mon Aug 06, 2007 2:21 pm
by jasminetea
Hi Ronny,
It went as quick as you said. Thanks very much for advice (Speedy, SpotOn and Perfect)

JT