Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-10 19:01:19

surfwax95
Member
Registered: 2008-04-04
Posts: 38
Website

Outputting Image URL within Anchor

I’m trying to get the following by using the Textpattern interface, but I’m having some trouble figuring it out. I’m going to be using Cabel’s FancyZoom to provide a way for users to zoom in on thumbnails. I’m generating the thumbnails with Txp’s article image feature. The problem is the FancyZoom requires a link to a larger image within the anchor, but I can’t figure out how to output just the image URL with <txp:article_image />.

Here’s how I’d like to see the code in the end:

<a href=“IMAGE_URL”>
<img src=“THUMBNAIL_URL” />
</a>

Here’s the Txp:

<a href=”???”>
<txp:article_image />
</a>

FancyZoom is very similar to Lightbox in its implementation, but I can’t seem to figure this one out in order to get it to work with Txp.

Any help is appreciated!

Last edited by surfwax95 (2008-07-10 19:01:57)


Caps lock is cruise control for cool. —Unknown

Offline

#2 2008-07-10 19:07:27

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Outputting Image URL within Anchor

Check out upm_image for article images. Actually, I think smd_slimbox could work too – it accepts other lightbox-ish scripts.

Offline

#3 2008-07-10 21:14:43

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Outputting Image URL within Anchor

hak_article_image should do this pretty easily too <hak_article_thumb link="1" linktype="image" />

Last edited by hakjoon (2008-07-10 21:15:13)


Shoving is the answer – pusher robot

Offline

#4 2008-07-11 15:56:09

surfwax95
Member
Registered: 2008-04-04
Posts: 38
Website

Re: Outputting Image URL within Anchor

hakjoon,

That’s exactly what I needed, thanks!

jm,

Thanks for those recommendations, I’m actually using them as well. Thanks for your help.

Last edited by surfwax95 (2008-07-11 15:56:46)


Caps lock is cruise control for cool. —Unknown

Offline

Board footer

Powered by FluxBB