Viewing gallery on selection of category.

Phoca Gallery - image gallery extension
Nygie
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 31 Jan 2013, 14:27

Viewing gallery on selection of category.

Post by Nygie »

Is it possible to get the gallery to come up when you select the category rather than it bringing up the view of the category contents and then selecting an image?

Had a good look at the settings/documentation and forum but could not find the answer to my question.

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

Re: Viewing gallery on selection of category.

Post by Jan »

Hi, sorry I don't understand?
If you find Phoca extensions useful, please support the project
Micha#61
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 15 Feb 2013, 15:18

Re: Viewing gallery on selection of category.

Post by Micha#61 »

Hello.

i made a link with category view. if than klick on a categorie joomla coundn't find the Images.

example.com/index.php?option=com_phocagallery&view=category&id=1:testkat&Itemid=487

My Question: is the double dot in the link OK? i dont know where it com from.

My System Joomla 3.02 and phoca gallery V4Alpha3

MySQL:5.5.28
PHP: 5.3.15
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Viewing gallery on selection of category.

Post by Jan »

Hi, it is a standard Joomla! feature, first there is a number of category, and next to it after: there is an alias ... so this is standard Joomla! route URL.

Jan
If you find Phoca extensions useful, please support the project
Micha#61
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 15 Feb 2013, 15:18

Re: Viewing gallery on selection of category.

Post by Micha#61 »

Hi,

because the SQL Statement looks like this

SQL=SELECT parent_id FROM jos_categories WHERE id=1testkat

if i delete the alias "testkat"in the Database it works.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Viewing gallery on selection of category.

Post by Jan »

Hi, this should not be possible as the ID is tested on integer value so the alias is striped there (only the Integer is asked by SQL query, in other case, this could be a security problems)
If you find Phoca extensions useful, please support the project
Micha#61
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 15 Feb 2013, 15:18

Re: Viewing gallery on selection of category.

Post by Micha#61 »

Hi Jan, I have found the polluter. I am using flex header. After I turned off the module, everything was OK.
Thanks for your help and your beautiful work. :twisted:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Viewing gallery on selection of category.

Post by Jan »

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