Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-03-03 19:17:45
- qaisc
- Member
- Registered: 2008-06-10
- Posts: 13
add thumbnail pictures linke dto actual image
hello,
i am doing the following at the moment.
<a href=“http://qaischaudry.com/images/29.jpg”><img src=“http://qaischaudry.com/images/29t.jpg” alt=“ups envelope” title=“ups envelope” id=“ups envelope” class=“life 2009 “ style=“margin:0” align=“right” border=“1px” /></a>
could someone please tell me how i can do this using txp tages either with txp:image or txp:img, i can’t figure it out from the help files. all i want is a thumbnail image in my article that is linked to the actual image, preferably open in a new window. thank you.
-qais
Offline
Re: add thumbnail pictures linke dto actual image
You can use thumbnail
to generate the thumbnail as link to full-size image:
<txp:thumbnail id="29" link="1" />
But note that this will automatically take alt
and title
attributes from the “alternate text” and “caption” fields in the image database. The rest of the attributes you can do.
Code is topiary
Offline
#3 2009-03-03 21:58:49
- qaisc
- Member
- Registered: 2008-06-10
- Posts: 13
Re: add thumbnail pictures linke dto actual image
thank you. that works quite nicely. could you tell me how i can get a caption to show under my thumbnail image? i did some checking and people suggest i get <txp:upm_image /> and that it can’t be done with any internal txp tags. is that correct?
Offline
Re: add thumbnail pictures linke dto actual image
Correct, there is currently no built-in tag to display an image caption directly. upm_image and various other image plugins have this.
Code is topiary
Offline