Einzelnen Beitrag anzeigen
  #1  
Alt 22.04.08, 11:47
lorrey lorrey ist offline
Forum Stammgast
 
Registriert seit: 13.11.06
Beiträge: 129

CSS Klasse für bestimmte Seiten ändern?


Hallo zusammen!

Ich würde gerne n Seiten, eine ander CSS Klasse für das <li> geben.
Diese Klasse sollte dann auch auf allen Unterseiten der Seite übernommen werden.

Geht sowas?

Würde mir aber schon helfen, wenn ich den wrapItemAndSub bei bestimmten Seiten ändern kann!

Ich hab schon mal ein wenig mit "override" probiert, aber leider nie mit dem gewünschten Erfolg.

Hier mein Standard TS:


Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
lib.sub-navi = HMENU

lib.sub-navi{
entryLevel = 1
1 = TMENU
1.wrap = <ul>|</ul>
1.noBlur = 1
1{
    # no state: normale Formatierung
NO{
wrapItemAndSub = <li class="first">|</li>||<li>|</li>||<li>|</li>
stdWrap.htmlSpecialChars = 0

}

    # act state: gültig von der rootseite bis zur aktuellen Seite
ACT=1
ACT{
wrapItemAndSub = <li class="first active">|</li>||<li class="active">|</li>||<li class="active">|</li>
stdWrap.htmlSpecialChars = 0

}
}

2 = TMENU
2.wrap = <ul>|</ul>
2.noBlur = 1
2{
NO{
wrapItemAndSub = <li class="first">|</li>||<li>|</li>||<li>|</li>
stdWrap.htmlSpecialChars = 0
}
    # act state: gültig von der rootseite bis zur aktuellen Seite
ACT=1
ACT{
wrapItemAndSub = <li class="first active">|</li>||<li class="active">|</li>||<li class="active">|</li>
stdWrap.htmlSpecialChars = 0
}
}
}

Besten Dank schon mal!

Geändert von lorrey (25.04.08 um 17:00 Uhr).
Mit Zitat antworten