Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-09 18:56:21

sparkybarkalot
Member
Registered: 2004-10-13
Posts: 43

Other graphic as link to article image

I am tearing out what little hair I have left trying to figure out how create a text link to an article image. Basically, I just want the words “view larger image” to be a link to the image attached to the article. I don’t want to hardcode the image ID, because I’m doing this in a form. How can I do this? Looked everywhere and tried everything and I’m stuck. Thanks.

Offline

#2 2007-03-09 19:56:16

sparkybarkalot
Member
Registered: 2004-10-13
Posts: 43

Re: Other graphic as link to article image

Okay, as usual, just after posting I FINALLY found out how to do it. Using the excellent upm_img plugin, I did this:

1) In a form I put in this:

<p><txp:upm_article_image form=“view_larger_image” /></p>

2) Then I created the “view_larger_image” form and put this in it

<a href=”<txp:upm_img_full_url />” rel=“lightbox”>view larger image</a>

Offline

Board footer

Powered by FluxBB