Page 1 of 1

Phoca Gallery creates different urls for category view

Posted: 14 Sep 2016, 01:03
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.

Re: Phoca Gallery creates different urls for category view

Posted: 14 Sep 2016, 12:32
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

Re: Phoca Gallery creates different urls for category view

Posted: 04 Oct 2016, 23:07
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.

Re: Phoca Gallery creates different urls for category view

Posted: 07 Oct 2016, 19:20
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

Re: Phoca Gallery creates different urls for category view

Posted: 23 Jun 2017, 23:25
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.

Re: Phoca Gallery creates different urls for category view

Posted: 25 Jun 2017, 14:53
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