Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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