RSS

Layoutslide + Bodytag

This entry was posted on Jun 01 2010
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
# **
# * unique body ids
# ********************
temp.body = COA
temp.body.10 = TEXT
temp.body.10 {
field = uid
wrap = <body id="page_|" class="layout1">
	if.equals = 1
	if.value.data = levelfield:-1,layout,slide 
}
 
temp.body.20 < temp.body.10
temp.body.20.wrap = <body id="page_|" class="layout2">
temp.body.20.if.equals = 2
 
temp.body.30 < temp.body.10
temp.body.30.wrap = <body id="page_|" class="layout3">
temp.body.30.if.equals = 3
 
temp.body.40 < temp.body.10
temp.body.40.wrap = <body id="page_|" class="layout4">
temp.body.40.if.equals = 4
 
page.bodyTagCObject < temp.body

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


One Response to “Layoutslide + Bodytag”

  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
    }


Post a Comment