Two horizontal navigation menus: main, and "administrative"

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
justinae

Two horizontal navigation menus: main, and "administrative"

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
justinae

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

Post by justinae »

Thanx. Is there some of your code missing? Would you be willing to share the whole template and css code?
justinae

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

Post 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.
savagekabbage
Forum Members
Forum Members
Posts: 75
Joined: Mon Apr 23, 2007 3:51 pm

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

Post 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.
justinae

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

Post 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".
justinae

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

Post 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.
User avatar
jasminetea
Forum Members
Forum Members
Posts: 20
Joined: Mon Aug 06, 2007 11:26 am

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

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
User avatar
jasminetea
Forum Members
Forum Members
Posts: 20
Joined: Mon Aug 06, 2007 11:26 am

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

Post by jasminetea »

Hi Ronny,
It went as quick as you said. Thanks very much for advice (Speedy, SpotOn and Perfect)

JT
Locked

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