[Typo3-dev] Image alt/title attribute bug?

Christopher tombedlam at yahoo.com
Tue May 18 00:10:59 CEST 2004


Hello list,

I can't quite work out if this is a bug to be reported, or if it's only
me doing something improperly. I'm just after a second opinion really.
If it's actually a bug, I'll report it.

Here's the issue (affecting 3.6.0 for sure, not sure about 3.5)-

We can set this constant so that multiple images in the same content
item have individual captions:

"styles.content.imgtext.captionSplit = 1"

Since we can set "titleText" in 3.6.0, I thought I would set up my
image content items with title texts by just getting the caption of the
image (and for good measure, do the same with the alt attribute), like
this:

tt_content.image.20.titleText.field = imagecaption
tt_content.image.20.altText.field = imagecaption

...but, as you can imagine, all this does is get the whole record in
the appropriate field - it doesn't get processed as the captions
apparently do. The result is that, if you have two images, you get
something like this in your html output:

<img src="uploads/tf/image-1.gif" width="150" height="109" alt="image-1
alttext image-2 alttext" title="image-1 alttext image-2 alttext" /> 

So, my question is, is this a bug, or is there some better way of
filling the alt and title tags that I'm not aware of (i.e with or
without the captions)?

-Christopher


	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/





More information about the TYPO3-dev mailing list