Page 1 of 1

Can I have 2 different menus on 2 different pages?

Posted: 31 Mar 2009, 00:01
by orangesparkz
Does anyone know how to have 2 different pages with different sub menus?
I want to have 2 links display 2 different sets of categories. I know this can be done by hiding the categories I do not want to show.
http://www.oliphantstudio.com/main
See the two categories Backdrops and Rental Art. They need their own sub menus that work. (Click a category item in the Rental Art side menu and you will see how the menu changes back to Backdrops side menu)
I am using Phoca Gallery Menu Modules right now. I have 2 menus set up (by coping the module in joomla module manager), but the categories always default to the first side menu.

There must be another way to have 2 menus...?
thanks ahead of time!
-Cathy

Re: Can I have 2 different menus on 2 different pages?

Posted: 01 Apr 2009, 23:53
by Jan
Hi, you can get two different menus. You will create two modules, one will be displayed on one site, the second on second site... the problem can be Itemid in Joomla! for creting links (SEF) you need itemid, modules doesn't have itemids, so they try to find some from menu link and both modules mostly find the same itemid, so the links will be the same :-(

The solution can be adding current itemid into the module and not use hack which finds the menu link itemid

so try to add:

'&Itemid='.JRequest::getVar('Itemid', 1, 'get', 'int')

istead of

'&Itemid='.$itemId

in menu module file: modules/mod_phocagallery_menu.php
Jan

Re: Can I have 2 different menus on 2 different pages?

Posted: 03 Apr 2009, 18:55
by orangesparkz
This works perfect!!!! Thank you so much! :twisted: Both menus work perfect.

Re: Can I have 2 different menus on 2 different pages?

Posted: 16 Apr 2009, 01:02
by Jan
Ok