irgendwie bekomme ich es noch nicht zum laufe.
pseudocode würde so aussehen:
Typoscript-Code:
1: 2: 3: 4: 5: 6:
| if (usergroup=1) includeCSS.file2 = fileadmin/styles/group1.css else if (usergroup=2) includeCSS.file2 = fileadmin/styles/group2.css else includeCSS.file2 = fileadmin/styles/default.css - ERROR: Line 5: A multiline value section is not ended with a parenthesis! |
jetzt habe ich in diversen foren und tutorials verschiedene schreibweisen für con-statements gesehen, aber keine funktioniert bei mir.
Typoscript-Code:
1: 2: 3:
| [usergroup=2] includeCSS.file2 = fileadmin/styles/group2.css [end] |
hier wird group2.css auch geladen, wenn der user nicht in gruppe 2 steht.
Typoscript-Code:
1: 2: 3:
| [usergroup=2] includeCSS.file2 = fileadmin/styles/group2.css [GLOBAL] |
hier werden nach dieser anweisung keine anweisungen mehr ausgeführt, die seite bleibt also nach dem css-import leer.
dann hatte ich noch etwas mit nem if gesehen, aber das hat auch nicht funktioniert.