Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-22 21:51:55

Adam_V
Member
From: Vancouver, BC, Canada
Registered: 2007-08-22
Posts: 10
Website

Linking to an Article Image

Hi all, first post here. I just started using textpattern and I’m really loving it.

I’m just finishing up a site that has several product lists, with each product posted as an article. A product thumbnail displays on the page, and I want to be able to link each thumbnail to its corresponding full-sized image. However, I can’t find the right tag to do it. <txp:article_image> would be perfect if there were some way to not have the “img src” preceeding it in the output. Any help is much appreciated, thanks!

This is the code I have right now:

<dl class="product">

<dt>
<a href="*not sure what txp tag to put here*" target="_new">
<txp:article_image thumbnail="1" />
</a>
<txp:title />
</dt>

<dd>
<txp:body />
</dd>

</dl>

Offline

#2 2007-08-22 22:57:39

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Linking to an Article Image

Why not using a plugin, like hak_article_image

Cheers!

Offline

#3 2007-08-23 03:42:23

Adam_V
Member
From: Vancouver, BC, Canada
Registered: 2007-08-22
Posts: 10
Website

Re: Linking to an Article Image

That worked perfectly! Thanks a bunch for your help!

Offline

Board footer

Powered by FluxBB