Hi,
Started changing my site from xoops to joomla 3 weeks ago and have following problem with gallery display:
I have a main site with some Menu and a "subsite" inside with another Menu configered. When I am on my "subsite" my menu item displays a gallery in categories view that is fine.
When I select a category and navigate to Category view the Menu changes back to the main site menu, but it should stay with the subsite menu.
As gallery is a component I can't see how to link my subsite menu to the category view.
P.S. I am on joomla version 2.2.8 and all the latest versions for other components; for my video gallery and documents management system navigation works fine.
René
Menu changes when navigating to category view
-
rlaux
- Phoca Newbie

- Posts: 8
- Joined: 26 Nov 2012, 09:51
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Menu changes when navigating to category view
Hi, sorry I don't understand? Do you use Joomla! 3 or Joomla! 2.x? What is exactyl the problem?
If you find Phoca extensions useful, please support the project
-
rlaux
- Phoca Newbie

- Posts: 8
- Joined: 26 Nov 2012, 09:51
Re: Menu changes when navigating to category view
Hi Jan,
Shure I am on 2.5.8 !
I think my problem is now also asked in Phoca menulink focus lost when opening category from 05 dec.
Nevertheless try to explain it better:
I have on my site to different menus(a and b) with galleries configured with List of categories(Categories view), one with filter on x, the other on y:
http://www.rcmarket.net/cmsj/index.php/ ... ge-gallery
and http://www.rcmarket.net/cmsj/index.php/image-gallery
When I am in mfkm-image-gallery (a) and open a gallery, the menu changes to the menu of image-gallery (b) and is not staying with (a).
Hope this helps
Thanks
René
Shure I am on 2.5.8 !
I think my problem is now also asked in Phoca menulink focus lost when opening category from 05 dec.
Nevertheless try to explain it better:
I have on my site to different menus(a and b) with galleries configured with List of categories(Categories view), one with filter on x, the other on y:
http://www.rcmarket.net/cmsj/index.php/ ... ge-gallery
and http://www.rcmarket.net/cmsj/index.php/image-gallery
When I am in mfkm-image-gallery (a) and open a gallery, the menu changes to the menu of image-gallery (b) and is not staying with (a).
Hope this helps
Thanks
René
-
mmccabe
- Phoca Newbie

- Posts: 5
- Joined: 05 Dec 2012, 17:45
Re: Menu changes when navigating to category view
I also think that this is the same problem as in my post/question of 5 Dec.
Keen to know what might be causing this.
Miriam
Keen to know what might be causing this.
Miriam
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Menu changes when navigating to category view
Hi, the menu is changing because the system is not able to know which menu links you will do. They system works this way:
there is the following tree: categories -> category -> subcategory -> image. If you are placed in some level, e.g. in subcategory, the system looks for the parent category and then for the categories view - to follow the tree. Joomla! has the format of urls set by menu links, so the system needs to find some menu link and use the Itemid of it - to build the site - but there is no option to know which menu link should be used (in case there are two different menu links which can display e.g. through the tree the same view
... so in this case the system is very powerful but in some parts limited - to ask why this works this way you need to ask Joomla! developers as they did it such way
)
Jan
there is the following tree: categories -> category -> subcategory -> image. If you are placed in some level, e.g. in subcategory, the system looks for the parent category and then for the categories view - to follow the tree. Joomla! has the format of urls set by menu links, so the system needs to find some menu link and use the Itemid of it - to build the site - but there is no option to know which menu link should be used (in case there are two different menu links which can display e.g. through the tree the same view
Jan
If you find Phoca extensions useful, please support the project
-
mmccabe
- Phoca Newbie

- Posts: 5
- Joined: 05 Dec 2012, 17:45
Re: Menu changes when navigating to category view
Hi Jan,
Can you not pass the calling ItemId you the gallery to remember where it was coming from or am I misunderstanding?
Am I right in reading your answer in that I need to communicate to my client that this behaviour cannot be solved, at least not in the current version? Are there any ways we can work around this?
Thanks.
Miriam
Can you not pass the calling ItemId you the gallery to remember where it was coming from or am I misunderstanding?
Am I right in reading your answer in that I need to communicate to my client that this behaviour cannot be solved, at least not in the current version? Are there any ways we can work around this?
Thanks.
Miriam
-
rlaux
- Phoca Newbie

- Posts: 8
- Joined: 26 Nov 2012, 09:51
Re: Menu changes when navigating to category view
Hi,
The only solution is for now the browser back button.
But i have on my site also 2 instances of joomdoc and here the behavior is ok, ie when I browse through the document tree I have almost the same menu on my site. I'm still missing something as i am using joomla now just since November.
René
The only solution is for now the browser back button.
But i have on my site also 2 instances of joomdoc and here the behavior is ok, ie when I browse through the document tree I have almost the same menu on my site. I'm still missing something as i am using joomla now just since November.
René
-
rlaux
- Phoca Newbie

- Posts: 8
- Joined: 26 Nov 2012, 09:51
Re: Menu changes when navigating to category view
Hi again,
Studied a little bit around and found that the url build for the image categories displayed in category view had image-gallery in its path but should have mfkm-image-gallery.
Checked if i could change code and found that the code was almost in the views -> categories-> view.html.php file:
I changed the commented line to the active line an commented the active line
now the link is not build via the standard route but is calculated on the active view?
I think this works now for me.
René
Studied a little bit around and found that the url build for the image categories displayed in category view had image-gallery in its path but should have mfkm-image-gallery.
Checked if i could change code and found that the code was almost in the views -> categories-> view.html.php file:
Code: Select all
// Link
//$this->categories[$key]->link = JRoute::_('index.php?option=com_phocagallery&view=category&id='. $item->slug.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') );
$this->categories[$key]->link = PhocaGalleryRoute::getCategoryRoute($item->id, $item->alias);Code: Select all
// Link
$this->categories[$key]->link = JRoute::_('index.php?option=com_phocagallery&view=category&id='. $item->slug.'&Itemid='. JRequest::getVar('Itemid', 0, '', 'int') );
//$this->categories[$key]->link = PhocaGalleryRoute::getCategoryRoute($item->id, $item->alias);I think this works now for me.
René
- Jan
- Phoca Hero

- Posts: 49149
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Menu changes when navigating to category view
Ok
If you find Phoca extensions useful, please support the project