[TYPO3-UG Oesterreich] CSS Wechsel mit globaler variable?

Wolfgang Klinger wolfgang at stufenlos.net
Wed Jul 25 18:13:22 CEST 2007


*hiya!*

On Jul 25, 2007, at 5:53 PM, Roland Büchler wrote:
> ... hmmm, ist sehr komplex, ich glaube da brauch ich einen frischen  
> Tag, bin
> heute nicht mehr aufnahmefähig. Nur um es endgültig zu wissen,
> Variablendefinition (String) (wie z.b. auch in Javascript) gibt es in
> Typoscript nicht?

Na wenn das komplex is ;-)

Nein, gibt's nicht.
Um typo3.org zu zitieren:
----
'Myth: "TypoScript is a scripting language"

This is misleading to say since you will think that TypoScript is  
like PHP or JavaScript while it is not. From the previous pages you  
have learned that TypoScript strictly speaking is just a syntax.  
However when the TypoScript syntax is applied to create TypoScript  
Templates then it begins to look like programming and the parallel to  
XSLT might also hint at that.

In any case TypoScript is NOT a comparable to a scripting language  
like PHP or JavaScript. In fact, if TYPO3 offers any scripting  
language it is PHP itself! TypoScript is only an API which is often  
used to configure underlying PHP code.'
----
    (http://tinyurl.com/2v5leh)

:-)

Noch ein anderer Weg für dein Problem:
http://www.typo3.net/tsref/menu_objects/menu_zustaende/
itemArrayProcFunc und für das "besondere" Element in deinem Menü
einfach den Zustand "USERDEF1" setzen, das kannst du dann
ganz normal wie NO, ACT, usw. per TypoScript wieder
konfigurieren

ODER
du gibst den Elementen halt eine id="i{field:uid}" und
machst das alles über CSS:
div#menu div#i123{background-color:#f00}
(ist die am wenigsten komplizierte Aufgabe)


hth, lg
Wolfgang



More information about the TYPO3-at mailing list