Layoutslide + Bodytag

# **
# * unique body ids
# ********************
temp.body = COA
temp.body.10 = TEXT
temp.body.10 {
field = uid
wrap =


if.equals = 1
if.value.data = levelfield:-1,layout,slide
}

temp.body.20 < temp.body.10 temp.body.20.wrap =


temp.body.20.if.equals = 2

temp.body.30 < temp.body.10 temp.body.30.wrap =


temp.body.30.if.equals = 3

temp.body.40 < temp.body.10 temp.body.40.wrap =


temp.body.40.if.equals = 4

page.bodyTagCObject < temp.body [/code] Was macht das Script?
Es Slidet das Seitenlayout auf die Unterseiten.

Wofür braucht man das?
Man hat ein Template und möchte nur auf bestimmten Seiten durch die <body class> etwas durch sein CSS verändern.

Vorteil?
1 Template aber X möglichkeiten nur per CSS einfluss dadrauf zu nehmen 🙂

Danke Bernhard

Marc Finnern: Marc Finnern ist ein FullStack-Developer. Sein Fachgebiet ist TYPO3, WordPress und InterRed. Ob Plugin, Backend oder Frontend-Arbeiten anfallen, alles ist möglich und machbar, man braucht nur die passende Idee.

View Comments (1)

  • Nachtrag. Wenn man nun noch Statt Layout normal, Layout 1 ... haben will

    Rootpage > Seiteneigenschaften > optionen > TSConfig >

    # Inhalt der Layout Select box bei seiten
    TCEFORM.pages {
    layout.altLabels.1 = Layout: default
    layout.altLabels.2 = Layout: Blume rechts
    layout.altLabels.3 = Layout: eine Blume
    layout.addItems.4 = Layout: zwei Blumen
    }

This website uses cookies.