Zum Inhalt springen

wie benutze ich bodyTagAdd richtig?

Erstellt am 22. August 2006 · 5 Antworten · letzte Antwort am 22. August 2006

Tags: Frage, TYPO3 3

mathisdt ·

Hallo!
Ich bin völliger Neuling bei Typo3, möchte aber jetzt eine bestehende Seite (läuft auf 3.5) etwas verändern. Die einzige Sache, die ich nicht hinbekomme, ist auf nur einer Seite der ganzen Webpräsenz in den Body-Tag ein zusätzliches onload="load()" einzufügen. Ich habe über bodyTagAdd gelesen, aber egal in welcher Kombination ich das ganze in die Box "Page TypoScript configuration" eingebe, es hilft nichts.
Wie kann ich das hinbekommen?

Vielen Dank, Mathis

mathisdt ·

ich weiß nicht mehr alle Kombinationen, aber so in etwa

bodyTagAdd = " onload=\"load()\""
page.bodyTagAdd = " onload=\"load()\""
PAGE.bodyTagAdd = " onload=\"load()\""
page.79.bodyTagAdd = " onload=\"load()\""
PAGE.79.bodyTagAdd = " onload=\"load()\""

(die ID der Seite ist 79)

steffenk ·

Du solltest das über eine Condition lösen:

[globalVar = TSFE:id=79]
page.bodyTag=<body onload="...">
[global]

ich bin davon ausgegangen, das Du vorher
page = PAGE

drin hast, sonst musst Du das anpassen.