Page 1 of 2

how to have two menu's with CSSMenuTop+2columns, & specify where links go

Posted: Mon Jun 08, 2009 10:04 pm
by mvandiermen
I would like to have two menu's with different content links, seems CSSMenu top + 2 columns is setup for this but every time I install it; it comes up with a top horizontal navigation bar (ok) and a blank area for the left vertical navigation bar.

I could spend hours guessing and trying to edit the code but surly someone has a quick answer who has tried this before.

Also when I add a new pages how will specify which navigation bar it go's into?  
:)

Re: How to; have two menu's with CSSMenu top + 2 columns, and specify where links go

Posted: Mon Jun 08, 2009 10:11 pm
by tyman00
The top navigation bar is based off of the "Parent Items" or the very top items.

The bottom left navigation menu is based off of "Children Items" when compared to that parent.


I.E.

Code: Select all


-HOME
-COMPANY
 +Child1
 +Child2
 +Child3
-ABOUT
 +Child4
 +Child5
 +Child6
-CONTACT
 +Child7
Would make your top bar like this:  

Code: Select all

 HOME | COMPANY | ABOUT | CONTACT
Then when you selected COMPANY your left navigation would look like

Code: Select all

 +Child1
 +Child2
 +Child3
or when you clicked ABOUT the left nav would look like

Code: Select all

 +Child4
 +Child5
 +Child6

Re: How to; have two menu's with CSSMenu top + 2 columns, and specify where links go

Posted: Mon Jun 08, 2009 10:23 pm
by mvandiermen
I understand what you said but this is not the case with my new installation.
Please test: http://www.frescocafe.com.au/index.php    (installed with sample content, ...unchanged)

Even if it did work I would still be looking for a way to have two unique navigation bars with specified parent links.  I will have a look in the modules section and maybe I will find something.

Dont know why my all my sites (in regards to CSSMenu top + 2 columns) don't work in the way you said they should, as I dont believe it would be made this way.

Re: How to; have two menu's with CSSMenu top + 2 columns, and specify where links go

Posted: Mon Jun 08, 2009 10:28 pm
by tyman00
I am not trying to question you... but it seems as if that page does not have that template associated with it. It's as if you set the CSSTopMenu + 2 Columns to be the default for every page.

Even this page: http://www.frescocafe.com.au/index.php?page=top_left

Re: How to; have two menu's with CSSMenu top + 2 columns, and specify where links go

Posted: Mon Jun 08, 2009 10:33 pm
by mvandiermen
Yes I set the CSSTopMenu + 2 Columns to be the default for every page, and clearly if I did that it would have a template associated with it.

So what do I change to add a second navigation bar?

I am messing with is now.

Re: How to; have two menu's with CSSMenu top + 2 columns, and specify where links go

Posted: Mon Jun 08, 2009 10:37 pm
by tyman00
The CSS Top Menu + 2 columns does not have the left hand navigation. That one is a CSS Drop Down Top Menu with two columns below. Generally one for news at the left and one for the content at the right.

Sorry I apparently wasn't paying attention in your first post :(


The one you want to use is: Top simple navigation + left subnavigation + 1 column

Re: How to; have two menu's with CSSMenu top + 2 columns, and specify where links go

Posted: Mon Jun 08, 2009 10:43 pm
by mvandiermen
My apologies for not looking at the template code first

Your right in my blank side box area it has

Code: Select all

      {* Start Sidebar *}
      <div id="sidebar" class="hascontent">
         {content block='Sidebar'}
      </div>
      {* End Sidebar *}
so does not give reference to navigation bar there

I will try your suggested solution and hope I will find a way to specify where parent links go

Re: How to; have two menu's with CSSMenu top + 2 columns, and specify where links go

Posted: Mon Jun 08, 2009 10:54 pm
by mvandiermen
That is actually exactly what I want. I only wanted the side navigation bar to appear on one page, and I did not want drop down menu's.
it makes it easy just to add the navigation bar as child links

all I have to do now is find a way to hide the left navigation bar space on the pages without child links, I think I will be able to do this.

Thanks for your solution. I will try to add [solved] to this post and make your answer the solution.

Re: how to have two menu's with CSSMenuTop+2columns, & specify where links go[solved

Posted: Tue Jun 09, 2009 2:19 am
by tyman00
Glad to see it worked.

With some smarty work and some calls from the menu manager you can hide it.

Have it check to see if there are any nodes at that level. IE

If $node->depthQuantity => 1 then display

Re: how to have two menu's with CSSMenuTop+2columns, & specify where links go[solved

Posted: Mon Jun 15, 2009 4:55 pm
by mvandiermen
I actually need 2 unique navigation areas now which are displayed no matter which parent link is selected
I am putting http://www.ndbrewing.com.au/ into cmsms

Re: how to have two menu's with CSSMenuTop+2columns, & specify where links go

Posted: Mon Jun 15, 2009 5:04 pm
by mvandiermen
or if there was a way to keep the sub links in the side bar even when the parent link was not selected that would also be fine

Re: how to have two menu's with CSSMenuTop+2columns, & specify where links go

Posted: Mon Jun 15, 2009 5:11 pm
by tyman00
I'd just use a Global Content Block for that. Manually add the links to the GCB and call it in your Template. Then when you need to change the menu just change the GCB.

Re: how to have two menu's with CSSMenuTop+2columns, & specify where links go

Posted: Mon Jun 15, 2009 5:12 pm
by mvandiermen
I will probably do that but its not good for the end user

Re: how to have two menu's with CSSMenuTop+2columns, & specify where links go

Posted: Mon Jun 15, 2009 5:14 pm
by tyman00
From what I understand is you want a menu with custom items that aren't all children of the same parent... there is no way to do it but manually. It really isn't that difficult for them is it?

Re: how to have two menu's with CSSMenuTop+2columns, & specify where links go

Posted: Mon Jun 15, 2009 5:19 pm
by mvandiermen
editing GCB is not that hard for the end user I suppose but just that it would be nice to have this option in the pages list.