[TYPO3-content-rendering] cron_cssstyledimgtext alt & title

Ernesto Baschny [cron IT] ernst at cron-it.de
Tue Oct 11 20:06:11 CEST 2005


Jan Wischnat - schwangau.de schrieb am 11.10.2005 15:24:

>>in the FE the <img> only shows alt="" and title="", although i've
>>entered alt and title in the BE.
>>what can i do to display images with the correct alt and title text?

> I once had empty alt- and titletexts using cron_cssstyledimgtext 0.3.0
> in combination with another extension called kb_md5fepw.
> After removing kb_md5fepw my alt- and titletexts showed up.

That's true, probably this is the reason, thanks for bringing this to
our attention, Jan!

The problem here is that to get the alt and title attributes in the
IMAGE tag, my extention (cron_cssstyledimgtext) needs to extend a TYPO3
feature in the "tslib/class.tslib_content.php" class. This is done using
the XCLASS-feature of TYPO3. But this particular class is rather huge
and many other extentions also XCLASS it. Since multiple XCLASSing is
not supported by TYPO3, just one extention "wins" (probably the one that
was installed later).

One hack-solution would be to unite the multiple XCLASSed class. So in
this particular case, comment out the
"$TYPO3_CONF_VARS['FE']['XCLASS']['tslib/class.tslib_content.php']" in
ext_localconf.php from ONE of the extentions and add the code from the
class.ux_tslib_content.php file from this extention into the class with
the same name of the other extention (where you still have the XCLASS
setting in ext_localconf). This way both should work. But beware about
that when you upgrade extentions, as you will have to redo this merging
work afterwards!


Cheers,
Ernesto



More information about the TYPO3-project-content-rendering mailing list