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

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"
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

Post 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?  
:)
Last edited by mvandiermen on Mon Jun 15, 2009 4:56 pm, edited 1 time in total.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

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

Post 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
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

Post 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.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

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

Post 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
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

Post 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.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

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

Post 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
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

Post 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
Last edited by mvandiermen on Mon Jun 08, 2009 10:45 pm, edited 1 time in total.
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

Post 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.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

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

Post 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
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

Post 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
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

Post 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
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

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

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

Post by mvandiermen »

I will probably do that but its not good for the end user
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

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

Post 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?
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
mvandiermen
Forum Members
Forum Members
Posts: 83
Joined: Mon Nov 03, 2008 1:28 pm

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

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

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