Zum Inhalt springen

Kontrast Umschalter

Erstellt am 21. Oktober 2020 · 1 Antwort · letzte Antwort am 23. Oktober 2020

Tags: TYPO3 9, Frage

Hoge ·

Hallo,
ich möchte auf einer Website ein Menü einbinden mit dem ein anderes Stylsheet (Kontrastreich) eingestellt wird.
Bei der Umsetzung stehe ich ein bisschen auf dem Schlauch. Mit

[globalVar = GP:layout=0]
  //Normal
  page.includeCSS.file8 = fileadmin/struktur/styles_men.css
[global]
[globalVar = GP:layout=1]
  //Contrast
  page.includeCSS.file8 = fileadmin/struktur/styles_men_con.css
[global]

und

CONTRAST = COA
CONTRAST{
    wrap = <ul>|</ul>
 
    1 = TEXT
    1.wrap = <li>|</li>
    1.value = Standardansicht&nbsp;&#124;
    1.value.typolink.parameter.data = page:uid
    1.value.typolink.additionalParams = &layout=0
    1.value.typolink.ATagParams = title="normale Ansicht"
 
    2 < .1
    2.value = &nbsp;Kontrastansicht   
    2.value.typolink.additionalParams = &layout=1
    2.value.typolink.ATagParams = title="Kontrastansicht"
 
  }

bekomme ich das zwar hin, aber nur für die jeweilige Seite.
Hat jemand einen Tipp wie das am besten gelöst wird?

Dankesgruß
Hoge