Page 1 of 1

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

Posted: Fri Dec 21, 2007 1:24 pm
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.]

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

Posted: Fri Dec 21, 2007 1:30 pm
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

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

Posted: Fri Dec 21, 2007 1:35 pm
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

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

Posted: Fri Dec 21, 2007 2:38 pm
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

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

Posted: Sun Dec 23, 2007 11:44 pm
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 \/...

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

Posted: Thu Dec 27, 2007 11:25 am
by MarkFresh
Hi

I can't see any bold words

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

Posted: Thu Dec 27, 2007 11:42 am
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...

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

Posted: Fri Dec 28, 2007 12:04 am
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!