Page 1 of 2
Problem with list of categories
Posted: 19 Oct 2014, 21:47
by filirizzo
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.
Re: Problem with list of categories
Posted: 20 Oct 2014, 15:29
by akrzem
I have the same problem. Do you have any solution?
Re: Problem with list of categories
Posted: 20 Oct 2014, 21:47
by akrzem
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.
Re: Problem with list of categories
Posted: 21 Oct 2014, 10:34
by akrzem
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
);
...
...
Re: Problem with list of categories
Posted: 22 Oct 2014, 10:32
by filirizzo
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.
Re: Problem with list of categories
Posted: 23 Oct 2014, 15:16
by Jan
Re: Problem with list of categories
Posted: 23 Oct 2014, 18:05
by filirizzo
I tried to change the code in route.php but the problem is not solved.
Re: Problem with list of categories
Posted: 25 Oct 2014, 19:32
by Jan
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
Re: Problem with list of categories
Posted: 25 Feb 2015, 08:20
by Rechi
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?
Re: Problem with list of categories
Posted: 28 Feb 2015, 23:12
by Jan
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