Bug #14180
closedalt/title attributes of image tags not parsed correctly from image captions in content type imagetxt
0%
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:
<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" />
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)
Files