Page 1 of 1

How to modify link?

Posted: 11 Apr 2011, 00:15
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

Re: How to modify link?

Posted: 14 Apr 2011, 17:05
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