Zum Inhalt springen

cron_cssstyledimgtext : alt und title

Erstellt am 9. Oktober 2005 · 5 Antworten · letzte Antwort am 13. Oktober 2005

Tags: Frage

iphar ·

hallo
ich benutze CSS STYLED IMGTEXT (cron_cssstyledimgtext 0.3.0) für den Seitentyp Bild / Text mit Bild.
Leider erscheint im FE im <img> nur alt="" und title="" obwohl ich alt und title im BE angegeben habe!
woran könnte das liegen?

jenses ·

Du mußt in deinem Template
Click here to edit whole template record --> Include static (from extensions): CSS Styled Imagetext
auswählen.

iphar ·

hi!
das hab ich natürlich gemacht. es funktioniert ja auch, bis auf die alt und title tags.
cron_cssstyledimgtext baut ja auf dem normalen css_styled_text auf.
hatte bisher beide im template included. eigentlich brauche ich aber nur cron oder? hab das normale css_styled_text jetz mal aus den includes rausgeholt. bisher keine änderung!

irgendwas scheint mit dem cronaber nicht zu stimmen.
wenn ich z.b. einfach ein bild einfüge und als ausgabeart "tabelle" wähle hab ich 2 bild captions (<p class="csc-caption">) unter dem bild!
das kann doch auch irgendwie nicht stimmen?! ein bug im cron oder kann es auch sonst was sein?

danke gruß raphael

iphar ·

ich weiss jetzt woran es liegt:
mit folgendem hack kanns behoben werden:

Ernesto Baschny [cron IT] schrieb:

> 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!

das hat bei mir auch funktioniert. das 2. modul was die class.tslib_content auch verwendet hat war der qcom html_cleaner!

jenses ·

Sehr seltsam,
ich benutze seit einiger Zeit standarmäßig css_styled_content, cron_cssstyledimgtext und den qcom_cleaner,
hatte aber noch nie deine Probleme.
Vielleicht mal auf neuere Versionen updaten ?
Der qcom cleaner benutzt übrigens nur das XCLASS-features,
wenn clean_links = 1 geschaltet ist,
und das kann kann man beruhigt (bei vernünftiger Zeichensatzkonfiguration) ausgeschaltet lassen.

iphar ·

Der qcom cleaner benutzt übrigens nur das XCLASS-features,
wenn clean_links = 1 geschaltet ist,
und das kann kann man beruhigt (bei vernünftiger Zeichensatzkonfiguration) ausgeschaltet lassen.

Das hab ich gesehen, aber was genau macht clean_links?
Die Doku sagt nur:

Fix core functions typoLink() and getTypoLink() to produce standard compliant links

Deine Lösung wäre mir natürloich lieber, weil Änderungen in den PHP Dateien ja nicht unbedingt optimal sind...

gruß Raphael