Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-10-14 04:20:40

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: Putting a link in an image caption?

Hi Joe

You could also try

<txp:if_article_image>
<txp:images>
<img src="<txp:custom_field name="article_image" />"<txp:image_info type="ext">" width="<txp:image_info type="w" />" height="txp:image_info type="h" />" alt="<txp:image_info type="alt" />
<txp:image_info type="caption" wraptag="span" class="img_cap" escape=""/>
</txp:images>
</txp:if_article_image>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#14 2012-10-16 11:15:08

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: Putting a link in an image caption?

If you’ve been reading TXP, you may have noticed we use links in figure captions. The links are entered directly inline in the image caption using raw HTML. Stef created a custom image insert functionality (handled via the Write panel) so you put the curser in the article where you want the image to appear, select the image and styling type definition, click presto, and a tage like <txp:figcap name="file-name.png" /> is entered in place. When rendered, the image and associated caption with link are right there. It’s lovely. You’re clients will praise you.

I think he’s working on a plugin for it to release eventually. He talked about it. See section, Simplifying image insertion.

Offline

Board footer

Powered by FluxBB