Issue Bug Closed

#64989Typoscript renderObj IMAGE: empty altText renders "alt" without params in HTML

René Schäfer 02/11/15, 13:27 updated 08/17/15, 09:50

Description

Hello together,

I’m praud to report my first bug and you can hopefully recognise what i mean. I found that by rework a picture-menu in Typoscript after upgrade an TYPO3 4.7 to 6.2

It was hard to find the right new way to get pictures out of an typoscript object. I thougt it would be easier as in 4.7. but it was more complex instead..

How ever, her is the code to rende an image:

10 = FILES
10 {
references {
table = tt_content
fieldName = image
}
renderObj = IMAGE
renderObj {
file {
treatIdAsReference = 1
import.data = file:current:publicUrl
}
titleText.data = file:current:title
altText.data = file:current:alternative
}
}

The HTML shows in short:
What ever..

BUT if the alternative field if empty, the rendering shows:

The “alt-Tag” is not properbly deleted. The use of “altText.required=1” does not help.

Thanks for working on TYPO3 in general!
Greetings from Potsdam
René

Reviews 0

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