Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-06-12 16:52:43

bmwg
Member
Registered: 2010-04-06
Posts: 39

How to make a thumbnail link to the full size image

Hi,
I’m trying to make a thumbnail link to the full size image. I’m using
<txp:upm_article_image type="thumbnail" url="<txp:upm_img_full_url />" />
but it doesn’t work.
I use upm_article_image because I want the jquery cycle script to create a rotation of all images of the current article.

Offline

#2 2010-06-12 17:27:53

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How to make a thumbnail link to the full size image

Questions about plugins are best asked in the plugin thread.

That said, use single quotes for attribute values:

<txp:upm_article_image type="thumbnail" url='<txp:upm_img_full_url />' />

Alternative (for more customization):

<txp:upm_article_image>
   <a href="<txp:upm_img_full_url />" title="<txp:upm_img_caption />">
      <img src="<txp:upm_img_thumb_url />" width="<txp:upm_img_thumb_width />" height="txp:upm_img_thumb_height />" alt="<txp:upm_img_alt />" />
   </a>
</txp:upm_article_image>

Offline

Board footer

Powered by FluxBB