Disable detailed view, use link

Phoca Gallery - image gallery extension
ridors
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 May 2010, 14:12

Disable detailed view, use link

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable detailed view, use link

Post 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
If you find Phoca extensions useful, please support the project
ridors
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 May 2010, 14:12

Re: Disable detailed view, use link

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable detailed view, use link

Post by Jan »

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