Phoca Gallery creates different urls for category view

Phoca Gallery - image gallery extension
sbecker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Sep 2016, 00:37

Phoca Gallery creates different urls for category view

Post by sbecker »

Hi,
I work with Joomla 3.6.2 and Phoca Gallery 4.3.1.
I created menu entries for categories view and for category view itself. I use url rewrite. Menu url is different as in plugin or in categories overview. In menu only id is used and for other places id and alias is use. So it is not possible to get same links for menu and links within categories view.
How can I get also same url within categories overview?

menu url:
localhost/joomla/index.php?option=com_phocagallery&view=category&id=1&Itemid=174
link within categories overview:
localhost/joomla/index.php?option=com_phocagallery&view=category&id=1:alias&Itemid=174

Thanks for help.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery creates different urls for category view

Post by Jan »

Hi, if you use sef url, then your link:
localhost/joomla/index.php?option=com_phocagallery&view=category&id=1&Itemid=174
will be transformed to:
localhost/joomla/alias

The alias is not a part of ID but when sef is enabled, it will find the alias in database, so the link is always the same ( localhost/joomla/alias - even created by menu or directly in component)

Jan
If you find Phoca extensions useful, please support the project
sbecker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Sep 2016, 00:37

Re: Phoca Gallery creates different urls for category view

Post by sbecker »

Hi, now again with some more details.
menu url without sef:
localhost/joomla/index.php?option=com_phocagallery&view=category&id=1&Itemid=174
menu url with sef:
localhost/joomla/galerie/bildergalerie/oeffentlich.html

link within categories overview (localhost/joomla/index.php?option=com_phocagallery&view=categories&Itemid=147) without sef:
localhost/joomla/index.php?option=com_phocagallery&view=category&id=1:oeffentlich&Itemid=174
link within categories overview (localhost/joomla/galerie/bildergalerie.html) with sef:
localhost/joomla/galerie/bildergalerie/category/1-oeffentlich.html

I would expect same sef url in menu also in category overview (phoca gallery).

Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery creates different urls for category view

Post by Jan »

Hi, it is the same, only in menu link the alias is missing, for SEF it does not have any influence. For not sef, yes, the alias is missing. I will take a look a it for more details - the problem is - menu link is not rendered by Phoca Gallery but by menu link so then the rules for Phoca Gallery do not work.

I will take a look at it for the next version to see if I can change it :idea:

Jan
If you find Phoca extensions useful, please support the project
sbecker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Sep 2016, 00:37

Re: Phoca Gallery creates different urls for category view

Post by sbecker »

Hi,
Do you had time for take a look into details? With current version Phoca Gallery 4.3.5 and Plugin 4.3.4 nothing has change. Joomla 3.7.2.

Thanks.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery creates different urls for category view

Post by Jan »

Hi, there were no changes regarding this issue in 4.3.5 as I have tested it on different server with different parameters but didn't get any similar problem there. I still didn't find what can cause it on your server, what can be wrong in menu links. As I wrote there is no feature to somehow set if the url should include ID or not in Phoca Gallery - it just doesn't create the SEF link :idea: :-(

In fact, Phoca Gallery builds this URL:
localhost/joomla/index.php?option=com_phocagallery&view=category&id=1&Itemid=174

and how it is translated to SEF, it depends on SEF features (or external SEF extensions) in Joomla! :idea:

So the only idea for now is to use the default categories menu link and when linking to some specific category then just copy the URL created by categories menu link and paste it to system as custom URL :idea: :-( - not systematic solution but maybe it can help for now


Jan
If you find Phoca extensions useful, please support the project
Post Reply