How to modify link?

Phoca Gallery modules - modules for Phoca Gallery extension
dotcom22
Phoca Enthusiast
Phoca Enthusiast
Posts: 54
Joined: 10 Nov 2008, 18:19

How to modify link?

Post by dotcom22 »

hello

Actually the module link allow us to choose between 3 mode:

- Link to detail image
- Link to category
- Link to all category

I want use the module to "Link to category" but I need to redirect to the first category instead to the real category where the image is published.

For be clear actually I have many category with one sub-category for each category (like Category1/Sub-category1). My images are always published inside sub-category and none of them inside first category. When using "Link to category" users are redirected to real category where the image are published (that mean sub-category1) and instead of that I would like simply display the category where all sub-category are listed...

I imagine this is possible but it require to modify the code somewhere in the module file... Can you please tell me how to do ??

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

Re: How to modify link?

Post by Jan »

Hi, you need to somehow get the category id you want from the database and set it to the module - the sql query needs to be customized in the module - to set the category you need.

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