Page 1 of 1

Disable detailed view, use link

Posted: 27 May 2010, 14:58
by ridors
Hi there everybody,

Phoca Gallery V2.71:
I display an Image category on my website, so far so good.

by adding an image I can add an external link, which is displayed as small icon or as text under the thumb.

My goal is to go directly to this external link by clicking on the thumbnail. No Popup and no detailed view.

Any ideas how to solve this?

Thanks in advance

ridors

Re: Disable detailed view, use link

Posted: 31 May 2010, 14:21
by Jan
Hi, then you need to customize it in the code and change the link to detail window - add the external link code there

components/com_phocagallery/views/category/tmpl/default.php

Jan

Re: Disable detailed view, use link

Posted: 01 Jun 2010, 10:45
by ridors
Thank you very much. I made these changes. For me it works perfect:

In components/com_phocagallery/views/category/tmpl/default.php

change Line 124:

Code: Select all

echo ' href="'. $value->link.'"';
to:

Code: Select all

echo '<a href="http://'.$value->extlink1[0] .'"';
and comment out this block at line ~420:

Code: Select all

if ($value->displayiconextlink1 == 1) {
				echo ' <a title="'.$value->extlink1[1] .'"'
					.' href="http://'.$value->extlink1[0] .'" target="'.$value->extlink1[2] .'" '.$value->extlink1[5].'>'
					.$value->extlink1[4].'</a>';


Now the 1st external Link will be taken if you click on the thumb.

Thanx again

ridors

Re: Disable detailed view, use link

Posted: 09 Jun 2010, 13:45
by Jan
Ok