Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
(solved)Image Caption
Hi
My Image Code:
<txp:if_article_image>
<txp:permlink class="thumb" title='<txp:title />'>
<txp:article_image thumbnail="1" escape="html" />
</txp:permlink>
</txp:if_article_image>
The new image caption tag: <txp:image_info />
How can I install a caption in my code?
That will not, unfortunately,
<txp:if_article_image>
<txp:permlink class="thumb" title='<txp:title />'>
<txp:article_image thumbnail="1" escape="html" />
</txp:permlink>
<txp:image_info type="caption" wraptag="div" class="img_cap" />
</txp:if_article_image>
Last edited by SuMu (2012-05-02 08:32:03)
Offline
Re: (solved)Image Caption
Hi susanne,
this post might be of help.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2012-05-01 11:19:46
- phuture303
- Member
- Registered: 2008-09-14
- Posts: 127
Re: (solved)Image Caption
The image_info tag is a single tag that Textpattern will replace with the relevant image data from the current image. Should usually be used in an image form, although it may be used on its own providing you specify an id or name.
Source: http://textpattern.net/wiki/index.php?title=image_info
In your case the image_info
-tag doesn’t know which image_info it should call.
This could do it
<txp:image_info type="caption" wraptag="div" class="img_cap" id='<txp:custom_field name="article_image" />' />
David
Last edited by phuture303 (2012-05-01 11:20:17)
Offline
Offline
Re: (solved)Image Caption
Hi
it works now with article images: here on my Blog
:-) Thanks a lot.
but
How do I do this automatically with normal photos? is it possible?
Offline
Re: (solved)Image Caption
SuMu wrote:
How do I do this automatically with normal photos? is it possible?
Can you explain more on what you are trying to acheive?
My immediate response would be
<txp:images category="some_image_category" limit="5">
<txp:thumbnail />
<txp:image_info type="caption" wraptag="div" class="img_cap" />
</txp:images>
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: (solved)Image Caption
Hi
If I just upload a photo and insert it in the editor … or have I use a Plugin?
I think I must use html and Css.
Last edited by SuMu (2012-05-02 08:32:40)
Offline
Re: (solved)Image Caption
Hi Susanne
Apologies but I still don’t understand. Which editor?
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: (solved)Image Caption
colak schrieb:
Hi Susanne
Apologies but I still don’t understand. Which editor?
Hi colak
Write Tab It’s because of my bad englsich
Offline
#10 2012-05-02 11:26:18
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: (solved)Image Caption
Still sorry, Susanne. Please try to describe your problem.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: (solved)Image Caption
hi susanne,
i understand that you want to insert an image via the write tab in your text and output it together with a caption. this is not possible out-of-the-box, but yab_image can do that for you.
you may also refer to this thread
hope that helps
christoph
Offline
Offline