Issue Bug Closed

#14180alt/title attributes of image tags not parsed correctly from image captions in content type imagetxt

Christopher 05/25/04, 02:23 updated 08/12/06, 14:20

Description

This happens in 3.6.0 + 3.6.1

By setting “styles.content.imgtext.captionSplit = 1”, multiple images in the same content item can be given individual captions.

Since we can set “titleText” in 3.6.0, I tried to 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, of course all this does is get the whole record in the appropriate field – it doesn’t get split as the captions apparently do. The result is that, if you have two images, you get something like this in your html output:

image-1 alttext image-2 alttext

Honestly I am not completely sure this is a bug – but since there is not a more sophisticated way of setting alt AND title attributes, I am inclined to call it one.
(issue imported from #M117)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.