Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-22 21:55:35

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Image caption

Do you know if 4.06 is going t0 have a tag for image caption?

Cheers
Lee

Offline

#2 2008-01-22 21:59:24

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Image caption

It doesn’t – you’ll need to use upm_image to display captions.

Offline

#3 2008-01-22 22:06:11

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Image caption

Thanks for the link.

Dev’s, can we have a built in caption tag?

Thanks
Lee

Offline

#4 2008-02-03 17:03:58

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Image caption

lee wrote:

Dev’s, can we have a built in caption tag?

I second the request. I would also like a tag to output the image author. Currently I do both with plugins, and yes this is easy to do, but it seems like a pretty basic bit of functionality that ought to be part of TXP.

Last edited by jsoo (2008-02-03 17:05:04)


Code is topiary

Offline

#5 2008-02-03 18:32:41

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

Re: Image caption

My vote is here too as I feel that the caption functionality is vital for gallery sites.


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

Offline

#6 2008-02-03 19:32:40

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Image caption

colak wrote:

My vote is here too as I feel that the caption functionality is vital for gallery sites.

Count me in as well.
I was most confused when getting started with txp, that the image interface offers you an input field for a caption, but there was no way to output the caption without the help of Mary’s plugin.

Offline

#7 2008-02-04 02:28:04

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Image caption

FYI: caption is currently output as image title attribute, if you think it isn’t being used anywhere.

Offline

#8 2008-02-04 08:07:30

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

Re: Image caption

Hi Mary,

There was this discussion before regarding the semantics of the caption which I think that it should not be used in the title attribute but as a optionally visible text which accompanies the picture.

How this could (in regards to the core) and should (in regards to the front end layout) be done I’m not certain yet. Maybe a discussion here might generate some ideas.

Last edited by colak (2008-02-04 08:09:01)


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 2008-02-04 08:57:08

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Image caption

One possibility is to make images more like articles – like a wrapping tag or use a form.

Offline

#10 2008-02-04 12:16:24

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Image caption

Mary wrote:

One possibility is to make images more like articles – like a wrapping tag or use a form.

Image form would be great. One may want to include other info than just the caption, such as image author, date, EXIF or IPTC metadata.


Code is topiary

Offline

#11 2008-02-04 13:42:07

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Image caption

You can include a title by doing this in the alt field:

 my alternative text" title="my title

This leaves the caption free for something else.


BB6 Band My band
Gud One My blog

Offline

#12 2008-02-04 16:51:39

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

Re: Image caption

Hi Mary,

I like your idea of form based images. Here are some thoughts for discussion

What txp currently offers is a possibility to upload your images and also a possibility to allocate a category to each one of those.

Here are the available tags, included to assist users who wish to join the discussion and they are not familiar with them

  1. <txp:article_image /> – this doesn’t count, although admittedly indispensable for many sites, including one of mine:)
  2. <txp:image /> – currently available attributes: class, escape, html_id, id, name, style, wraptag
  3. <txp:image_display /> – I never used this
  4. <txp:image_index /> – currently available attributes: c, label, labeltag, break, wraptag, class

One way I could see your suggestion is by calling the images in the write tab… something like

<txp:image_index c="images-category" listform="images_form" />

Where images_form could have something like

<div class="imagediv"><txp:new_image_display_tag thumbnail="1" /><br />
<txp:image_caption /></div>

but I would also try to have each thumbnail linked to the full size image. link="1" – although easy for most users – would not allow for flexibility on how the full size image is fetched and it might cause headaches to those who would want to use ajax methods.

A similar method as the above could be adopted for individual images

ie

<txp:image id="122" form="image_form" />

where image_form could be the same as the one above

The problem with this of course is the backward compatibility of the tags so maybe, yet another image tag is needed for that…

An alternative would be for the caption tag to work everywhere including the write tab

so we can have something like

<div class="imagediv"><a href="<txp:image id="122" />"><txp:image id="122" thumbnail="1" /></a><br />
<txp:image_caption /></div>

The above are just incomplete thoughts. I believe that there is a lot of work is needed before any code is committed.


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

Offline

Board footer

Powered by FluxBB