How to get/print external link variable ?

Phoca Gallery plugins - plugins for Phoca Gallery extension
ms.buggy
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 09 Jan 2012, 16:49

How to get/print external link variable ?

Post by ms.buggy »

Hello,

I need to print external link to the image details.
With the $image->title I'm able to get title, $image->description is way to get description.

But I cant figure out how can I read the variable from the external link1.
On the PhocaGallery category view the link is printed with $value->extlink1[0].
I think I need to read that value on the plugin page, perhaps with the "JRoute::_(PhocaGalleryRoute::getImageRout ..." but I'm totally lost here.

Any help appichiated!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to get/print external link variable ?

Post by Jan »

Hi, yes external link value is stored with three values (link, target, title) so the array for this needs to be used - the value needs to be allways taken from database value.
This value should be then exploded by php function as it includes three values separated by comma (not sure if it is comma)

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