Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-02-04 20:44:01
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Image Caption - Hypertext
Thought this would be an easy one — need to add hypertext in the Image Caption — but this did not work as planned — anyone have a work around —-
Thanks in advance for your assistance.
progre55
Offline
Re: Image Caption - Hypertext
How are you outputting the caption? Core Txp only uses it as the title attribute to img
(and a
elements as appropriate) in the output of image
, article_image
, and thumbnail
. It HTML-escapes the caption (and alt text) by default, but this can be overridden with the escape
attribute.
Code is topiary
Offline
#3 2010-02-04 21:16:44
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: Image Caption - Hypertext
jsoo:
I am actually using: <div class=“image-desc”><txp:upm_img_caption /></div>
Can you provide a little more about the escape attribute and getting that to function —-
Offline
Re: Image Caption - Hypertext
Check the documentation for upm_image_caption
. I’d wager there’s an attribute to control this, and I’d expect it to be called escape
, html_escape
, or something similar, and that it defaults to “on”. You want it “off”. You haven’t said what “did not work as planned”, but I expect you are getting HTML-escaped output.
Code is topiary
Offline
#5 2010-02-04 22:08:08
- progre55
- Member
- Registered: 2006-05-02
- Posts: 668
Re: Image Caption - Hypertext
jsoo:
Thanks —- this did the trick: <txp:upm_img_caption escape=“html” />
Offline
Pages: 1