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
Can I have 2 different menus on 2 different pages?
-
orangesparkz
- Phoca Member

- Posts: 33
- Joined: 11 Mar 2009, 22:41
- Jan
- Phoca Hero

- Posts: 49125
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Can I have 2 different menus on 2 different pages?
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
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
If you find Phoca extensions useful, please support the project
-
orangesparkz
- Phoca Member

- Posts: 33
- Joined: 11 Mar 2009, 22:41
Re: Can I have 2 different menus on 2 different pages?
This works perfect!!!! Thank you so much!
Both menus work perfect.
- Jan
- Phoca Hero

- Posts: 49125
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Can I have 2 different menus on 2 different pages?
Ok
If you find Phoca extensions useful, please support the project