Project

General

Profile

Actions

Bug #14180

closed

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

Added by Christopher over 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2004-05-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.6.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Sacha Vorbeck over 19 years ago

keyword:accessibility

Actions #2

Updated by Andreas Schwarzkopf over 19 years ago

ACK. the typolink function in class.tslib_content.php should integrate the getAltParam output in order to provide the possibility to set title and alt attribute in all links (like cImage and FILE functions)

Actions #3

Updated by Stanislas Rolland over 19 years ago

When extension Alttext for Images (key:dmc_image_alttext) is installed, apply the change described in the attached file: dmc_image_alttext_for_css_styled_imgtext.txt in order to restore its functionality.

Actions #4

Updated by Ernesto Baschny over 18 years ago

This has already been solved by the new split possibilities of stdWrap and its usage in the css_styled_content imgtext handling. Please consider to close this bug report.

Actions

Also available in: Atom PDF