How to use two nav. menus (showing different pages) on one template? [solved]

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
MarkFresh

How to use two nav. menus (showing different pages) on one template? [solved]

Post by MarkFresh »

Hi

I have a standard page using a main navigation menu at the top (see attached template 1) which has no drop downs. when someone clicks on one of the links (e.g. articles) a new template is used and in that template, a second navigation menu appears  (see attached template 2).

How is this achieved? I guess I have to create a new menu template say "articles_menu"  then call it with {cms_module module='menumanager' template='articles_menu'}

but what code would I use on a menu template for it to just show the children of the Articles section?

Put another way, the main navigation shows:
1.Home 2.News 3.Articles 4.About us 5.Contact

And the secondary navigation will just show
3.1 Article 1
3.2 Article 2
3.3 Article 3
3.4 Article 4


thanks

Mark

[This first issue was solved (well, Ronny pointed out to me where the obvious answer was) but I had added another question so  I took "solved" out of the title.]
Attachments
template2.gif
template1.gif
Last edited by MarkFresh on Thu Jan 24, 2008 10:18 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How do I use two navigation menus (showing different pages) on one template?

Post by RonnyK »

Mark,

the default template coming with the installatio called "Top simple navigation + left subnavigation + 1 column" does that. Or do you mean something else?

Ronny
MarkFresh

Re: How do I use two navigation menus (showing different pages) on one template?

Post by MarkFresh »

err, yes. I guess I was looking too deep to find the answer when it was there in front of me!

Thanks Ronny
MarkFresh

Re: [solved] How to use two nav. menus (showing different pages) on one template

Post by MarkFresh »

Another question related to the same issue...

If the main navigation is to permanently show level 1 and level 2 pages (see attached template 3), how could I make Article's level 2 pages not show in the main navigation?

Put another way, the main navigation shows:
1.Home            2.News            3.Articles            4.About us            5.Contact
                        2.1 Latest                                4.1 The Team
                        2.2 Archive                                4.2 Location

And the secondary navigation will show
3.1 Article 1
3.2 Article 2
3.3 Article 3
3.4 Article 4

thanks again

Mark
Attachments
template3.gif
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How to use two nav. menus (showing different pages) on one template?

Post by Dr.CSS »

You can use the number of levels and start level calls in the menu tags...

To see the diff. calls read the bold word below \/...
MarkFresh

Re: How to use two nav. menus (showing different pages) on one template?

Post by MarkFresh »

Hi

I can't see any bold words
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: How to use two nav. menus (showing different pages) on one template?

Post by cubix »

Go to Extensions » Modules click the name of the module or the word Help to the right to get the parameters it takes...
streever

Re: How to use two nav. menus (showing different pages) on one template?

Post by streever »

Yes, the module manager lists all the parameters! It is very easy to do what you want to do.

If you still have a problem, please post, we will be happy to help.

If it does resolve it, please add "Solved" to your post title.

thanks!
Locked

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