Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
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
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
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
Offline
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
<txp:article_image />
– this doesn’t count, although admittedly indispensable for many sites, including one of mine:)<txp:image />
– currently available attributes: class, escape, html_id, id, name, style, wraptag<txp:image_display />
– I never used this<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