Problem with list of categories

Phoca Gallery - image gallery extension
filirizzo
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Oct 2014, 20:49

Problem with list of categories

Post 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.
akrzem
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Oct 2014, 15:23

Re: Problem with list of categories

Post by akrzem »

I have the same problem. Do you have any solution?
akrzem
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Oct 2014, 15:23

Re: Problem with list of categories

Post 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.
akrzem
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 20 Oct 2014, 15:23

Re: Problem with list of categories

Post 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
);
...
...
filirizzo
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Oct 2014, 20:49

Re: Problem with list of categories

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with list of categories

Post by Jan »

see: viewtopic.php?f=1&t=27470&p=101555#p101540

akrzem
Thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
filirizzo
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Oct 2014, 20:49

Re: Problem with list of categories

Post by filirizzo »

Jan wrote:see: viewtopic.php?f=1&t=27470&p=101555#p101540

akrzem
Thank you for the guide.

Jan
I tried to change the code in route.php but the problem is not solved.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with list of categories

Post 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
If you find Phoca extensions useful, please support the project
Rechi
Phoca Member
Phoca Member
Posts: 32
Joined: 15 Feb 2015, 14:00

Re: Problem with list of categories

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with list of categories

Post by Jan »

Hi, blank site means a php error, try to see errorLog, maybe you will find some error message there :idea:
https://www.phoca.cz/documents/16-joomla ... rs-on-site
Jan
If you find Phoca extensions useful, please support the project
Post Reply