Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-05-01 10:42:24

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

(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)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#2 2012-05-01 11:18:15

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

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

#4 2012-05-01 11:21:43

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: (solved)Image Caption

Thank you both :-)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#5 2012-05-02 08:08:10

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

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?


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#6 2012-05-02 08:21:11

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

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

#7 2012-05-02 08:22:52

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

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)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#8 2012-05-02 09:38:34

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

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

#9 2012-05-02 09:56:21

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

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


viele Grüße
SuMu

Psychomuell + blogZicke

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

#11 2012-05-02 12:14:53

totoff
Member
From: Cologne, Germany
Registered: 2011-04-04
Posts: 145
Website

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

#12 2012-05-02 13:23:01

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: (solved)Image Caption

Thanks christoph :-)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

Board footer

Powered by FluxBB