In my web site, still in demo version, I created two menu items of type List Of Categories (Categories View).
I set correct filter Parent Category ID for each of them.
When I click first menu item of type List Of Categories (Categories View) "Opere", I see correctly categories and
subcategories.
When I click the second menu item of type List Of Categories (Categories View) "mostre" I see the list of categories correctly, but when I click on a category the menu item title changes and becomes "Opere", and the same Category Name In Page Title, as you can see from this link http://www.ntwebsoft.it/demo/index.php? ... Itemid=112
If I disable first menu item the problem with the second menu item does not occur.
There is also a problem with Display Category Name In Breadcrumbs. Even if I change the options I always see Menu Item Title - Category title.
I would like to see only Category title.
Problem with list of categories
-
akrzem
- Phoca Newbie

- Posts: 3
- Joined: 20 Oct 2014, 15:23
Re: Problem with list of categories
I have the same problem. Do you have any solution?
-
akrzem
- Phoca Newbie

- Posts: 3
- Joined: 20 Oct 2014, 15:23
Re: Problem with list of categories
If you have two entries in the menu leads to a list of categories there is a problem with a category view. The part of link to the category view is always the same no matter which menu entered. Its the alias for first menu id. Please help.
-
akrzem
- Phoca Newbie

- Posts: 3
- Joined: 20 Oct 2014, 15:23
Re: Problem with list of categories
Fix in the file
/administrator/components/com_phocagallery/libraries/phocagallery/path/route.php
public static function getCategoryRoute($catid, $catidAlias = '') {
$app = JFactory::getApplication();
$menu = $app->getMenu();
$active = $menu->getActive();
$activeId = $active->id;
$needles = array(
'category' => (int) $catid,
'categories' => $activeId
);
...
...
/administrator/components/com_phocagallery/libraries/phocagallery/path/route.php
public static function getCategoryRoute($catid, $catidAlias = '') {
$app = JFactory::getApplication();
$menu = $app->getMenu();
$active = $menu->getActive();
$activeId = $active->id;
$needles = array(
'category' => (int) $catid,
'categories' => $activeId
);
...
...
-
filirizzo
- Phoca Newbie

- Posts: 3
- Joined: 19 Oct 2014, 20:49
Re: Problem with list of categories
I would like to know if there is a solution to the reported problem, otherwise I will be forced to use another component to view the photo gallery.
Thanks.
Thanks.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem with list of categories
If you find Phoca extensions useful, please support the project
-
filirizzo
- Phoca Newbie

- Posts: 3
- Joined: 19 Oct 2014, 20:49
Re: Problem with list of categories
I tried to change the code in route.php but the problem is not solved.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem with list of categories
Hi, then not sure how to solve it, see:
https://www.phoca.cz/documents/16-joomla ... -in-joomla
https://www.phoca.cz/documents/16-joomla ... -in-joomla
to get information how the links are created in Joomla! and why e.g. specific menu link is selected and why there can be problems when two menu links are created to one type view in one component.
Jan
https://www.phoca.cz/documents/16-joomla ... -in-joomla
https://www.phoca.cz/documents/16-joomla ... -in-joomla
to get information how the links are created in Joomla! and why e.g. specific menu link is selected and why there can be problems when two menu links are created to one type view in one component.
Jan
If you find Phoca extensions useful, please support the project
-
Rechi
- Phoca Member

- Posts: 32
- Joined: 15 Feb 2015, 14:00
Re: Problem with list of categories
Hi
I’m using Joomla 3 and Phoca Gallery 4.1 and have the same behaviour as described above. I have two menus incl. sub-menus where I show Phoca categories. On the first menu everything works perfect. On the second one it apears that the categories will be displayed correctly but as soon as I click into one category the highlighted menu will change to the first menu instead of staying on the second (sub-)menu (the category will be displayed correctly). Also in the navigation bar it shows the adress from the first menu now. If I change the file “route.php” as recommended by akrzem I got a blank site but the adress in the navigation bar is now the right one.
I then disabled the SEF function but didn’t helped as well. Any other idea?
I’m using Joomla 3 and Phoca Gallery 4.1 and have the same behaviour as described above. I have two menus incl. sub-menus where I show Phoca categories. On the first menu everything works perfect. On the second one it apears that the categories will be displayed correctly but as soon as I click into one category the highlighted menu will change to the first menu instead of staying on the second (sub-)menu (the category will be displayed correctly). Also in the navigation bar it shows the adress from the first menu now. If I change the file “route.php” as recommended by akrzem I got a blank site but the adress in the navigation bar is now the right one.
I then disabled the SEF function but didn’t helped as well. Any other idea?
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem with list of categories
Hi, blank site means a php error, try to see errorLog, maybe you will find some error message there 
https://www.phoca.cz/documents/16-joomla ... rs-on-site
Jan
https://www.phoca.cz/documents/16-joomla ... rs-on-site
Jan
If you find Phoca extensions useful, please support the project