Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-20 17:11:37

ryancecilsmith
Member
Registered: 2008-07-17
Posts: 26
Website

How to link the article image's thumbnail to original

Hi everyone,

When I use the thumbnail tag, I can link it to the original image with link=“1”. Can I do that with the article image? I understand that I can write thumbnail=“1”, but I can’t add _link=“1”. How would I do that??

Thanks for your help in advance. Let me know if I’m not being clear.

PS to the Dev’s, the new Textpattern website is so much nicer.

Offline

#2 2010-02-20 20:24:34

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 638
Website

Re: How to link the article image's thumbnail to original

Maybe there is a way to do it without a plugin,
but I recommend you to use smd_gallery (+ smd_lib)
and then your code will be:

<txp:smd_gallery id="?article_image" limit="1">
<a href="{url}" title="{caption}"><img src="{thumburl}" alt="{alt}" /></a>
</txp:smd_gallery>

Offline

#3 2010-02-20 20:50:22

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: How to link the article image's thumbnail to original

In soo_image it would look like this:

<txp:soo_image link="1" />

so long as it is in an article form.

Other image plugins would give you still more options.

And yet another is to run the latest development release of Txp: it has some new image tags built in. But these might still be due for significant changes before the next release version.


Code is topiary

Offline

#4 2010-02-21 04:16:42

ryancecilsmith
Member
Registered: 2008-07-17
Posts: 26
Website

Re: How to link the article image's thumbnail to original

Thanks! I’ll check these both out.

Offline

Board footer

Powered by FluxBB