[TYPO3-english] Adding class attribute to an img tag

Pero Peric pperic at mail.com
Thu Sep 11 17:20:02 CEST 2014


Hi,

I'm trying to add a class="something" to every image. I tried this:

tt_content.image.20.default.addClassesImage >
tt_content.image.20.default.addClassesImage = something

I also tried this:

tt_content.image.20.default.params = class="something"

and this:

tt_content.image.20.1.params = class="something"

but nothing works. Looking into css_styled_content docs it says:

addClassesImage - Add the specified classes to the image element

so anybody knows why this doesn't work? Thx!

regards.




More information about the TYPO3-english mailing list