Page 1 of 1

[solved]Gallery module to include external link per image

Posted: Mon Jun 20, 2011 9:29 pm
by jospanner
Hello all

I would like to use the Lightbox template in the Gallery module to display my portfolio. As part of this, I want to have a link facility at the base of each image where the comment and title field is, to allow the user to click on the link and visit an external website. Is there any way to add code to the lightbox template to allow this to be different per image? So I guess each image would need a new 'link' field that I could enter I 'www.domain.co.uk' address to that would then target="_blank" out of my portfolio.

Any suggestions gratefully received.

Many thanks

Re: Gallery module to include external link per image

Posted: Mon Jun 20, 2011 9:31 pm
by micahgodbolt
It's much easier to put links on the gallery page then on the lightbox photo. I believe you'd have to jump into the lightbox jquery to change the template for the actual image popup.

Re: Gallery module to include external link per image

Posted: Mon Jun 20, 2011 9:46 pm
by jospanner
But I don't want links on the page ideally. I would prefer them so that each different image has a different link when it opens as the pop up - any ideas?

Re: Gallery module to include external link per image

Posted: Mon Jun 20, 2011 10:21 pm
by Jos
did you read the Gallery help in the wiki? Might want to check the FAQ section ;)

Re: Gallery module to include external link per image

Posted: Tue Jun 21, 2011 10:50 am
by luk407
I did something similar with JQuery linkify plugin:
http://www.vydradesign.cz/cz/prace/webdesign.html

Re: Gallery module to include external link per image

Posted: Tue Jun 21, 2011 6:28 pm
by jospanner
Yes - that's what I'm after! I will check out the wiki more fully (I did already check!) but I must've missed the info.

Thanks for the tip. Will add {solved} once I've located it....