TypoScript: Ueberschrifften als Graphik
Aus LagoWiki
(Unterschied zwischen Versionen)
(Die Seite wurde neu angelegt: ===== Constants ===== PROJEKTNAME = [Projektname] SCHRIFTFILE = [Schrifftfile.ttf] UEBERSCHRIFFTGROESSE = [Ueberschrifftgroesse] UEBERSCHRIFFTGROESSE_2 = [Ueberschr...) |
K |
||
(Der Versionsvergleich bezieht eine dazwischen liegende Version mit ein.) | |||
Zeile 14: | Zeile 14: | ||
lib.stdheader { | lib.stdheader { | ||
key.field = header_layout | key.field = header_layout | ||
- | + | ||
default = IMAGE | default = IMAGE | ||
default.file = GIFBUILDER | default.file = GIFBUILDER | ||
default.file { | default.file { | ||
- | + | XY = [10.w]+10, [10.h]+6 | |
- | + | backColor = {$HINTERGRUNDFARBE} | |
- | + | ||
- | + | #Schatten | |
- | + | 10 = TEXT | |
- | + | 10.text.data = page:title | |
- | + | 10.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} | |
- | + | 10.fontSize = {$UEBERSCHRIFFTGROESSE} | |
- | + | 10.fontColor = #DADADA | |
- | + | 10.offset = 5,[10.h]+4 | |
- | + | 10.niceText = 1 | |
+ | |||
+ | 20 = TEXT | ||
+ | 20.text.data = page:title | ||
+ | 20.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} | ||
+ | 20.fontSize = {$UEBERSCHRIFFTGROESSE} | ||
+ | 20.fontColor = #BCAD9A | ||
+ | 20.offset = 4,[10.h]+3 | ||
+ | 20.niceText = 1 | ||
+ | |||
+ | 25 = TEXT | ||
+ | 25.text.data = page:title | ||
+ | 25.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} | ||
+ | 25.fontSize = {$UEBERSCHRIFFTGROESSE} | ||
+ | 25.fontColor = #9F9282 | ||
+ | 25.offset = 3,[10.h]+2 | ||
+ | 25.niceText = 1 | ||
+ | |||
+ | 30 = TEXT | ||
+ | 30.text.data = page:title | ||
+ | 30.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} | ||
+ | 30.fontSize = {$UEBERSCHRIFFTGROESSE} | ||
+ | 30.fontColor = {$SCHRIFFTFARBE} | ||
+ | 30.offset = 2,[10.h]+1 | ||
+ | 30.niceText = 1 | ||
+ | |||
+ | #Fett | ||
+ | 40 = TEXT | ||
+ | 40.text.data = page:title | ||
+ | 40.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} | ||
+ | 40.fontSize = {$UEBERSCHRIFFTGROESSE} | ||
+ | 40.fontColor = {$SCHRIFFTFARBE} | ||
+ | 40.offset = 2,[10.h] | ||
+ | 40.niceText = 1 | ||
} | } | ||
default.wrap = |<br><br> | default.wrap = |<br><br> | ||
- | + | ||
1 = TEXT | 1 = TEXT | ||
1.field = header | 1.field = header | ||
1.wrap = <h1>|</h1> | 1.wrap = <h1>|</h1> | ||
- | + | ||
2 = TEXT | 2 = TEXT | ||
2.field = header | 2.field = header | ||
2.wrap = <h2>|</h2> | 2.wrap = <h2>|</h2> | ||
- | + | ||
3 = IMAGE | 3 = IMAGE | ||
3.file = GIFBUILDER | 3.file = GIFBUILDER | ||
Zeile 56: | Zeile 89: | ||
} | } | ||
3.wrap = |<br> | 3.wrap = |<br> | ||
- | + | ||
4 = IMAGE | 4 = IMAGE | ||
4.file = GIFBUILDER | 4.file = GIFBUILDER | ||
Zeile 73: | Zeile 106: | ||
} | } | ||
4.wrap = <br>|<br> | 4.wrap = <br>|<br> | ||
- | |||
} | } | ||
- | |||
</source> | </source> |
Aktuelle Version
Constants
PROJEKTNAME = [Projektname] SCHRIFTFILE = [Schrifftfile.ttf] UEBERSCHRIFFTGROESSE = [Ueberschrifftgroesse] UEBERSCHRIFFTGROESSE_2 = [Ueberschrifftgroesse_2] SCHRIFFTFARBE = [Schrifftfarbe] HINTERGRUNDFARBE = [Hintergrundfarbe]
Setup
# Überschrifften neu formatieren lib.stdheader > lib.stdheader = CASE lib.stdheader { key.field = header_layout default = IMAGE default.file = GIFBUILDER default.file { XY = [10.w]+10, [10.h]+6 backColor = {$HINTERGRUNDFARBE} #Schatten 10 = TEXT 10.text.data = page:title 10.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} 10.fontSize = {$UEBERSCHRIFFTGROESSE} 10.fontColor = #DADADA 10.offset = 5,[10.h]+4 10.niceText = 1 20 = TEXT 20.text.data = page:title 20.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} 20.fontSize = {$UEBERSCHRIFFTGROESSE} 20.fontColor = #BCAD9A 20.offset = 4,[10.h]+3 20.niceText = 1 25 = TEXT 25.text.data = page:title 25.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} 25.fontSize = {$UEBERSCHRIFFTGROESSE} 25.fontColor = #9F9282 25.offset = 3,[10.h]+2 25.niceText = 1 30 = TEXT 30.text.data = page:title 30.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} 30.fontSize = {$UEBERSCHRIFFTGROESSE} 30.fontColor = {$SCHRIFFTFARBE} 30.offset = 2,[10.h]+1 30.niceText = 1 #Fett 40 = TEXT 40.text.data = page:title 40.fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} 40.fontSize = {$UEBERSCHRIFFTGROESSE} 40.fontColor = {$SCHRIFFTFARBE} 40.offset = 2,[10.h] 40.niceText = 1 } default.wrap = |<br><br> 1 = TEXT 1.field = header 1.wrap = <h1>|</h1> 2 = TEXT 2.field = header 2.wrap = <h2>|</h2> 3 = IMAGE 3.file = GIFBUILDER 3.file { XY = 179, [10.h]+6 backColor = {$HINTERGRUNDFARBE} 10 = TEXT 10 { text.field = header fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} fontColor = #000000 fontSize = 15 niceText = 1 offset = 0, [10.h] } } 3.wrap = |<br> 4 = IMAGE 4.file = GIFBUILDER 4.file { XY = [10.w]+10, [10.h]+6 backColor = {$HINTERGRUNDFARBE} 10 = TEXT 10 { text.field = header fontFile = fileadmin/templates/{$PROJEKTNAME}/{$SCHRIFTFILE} fontColor = #000000 fontSize = {$UEBERSCHRIFFTGROESSE_2} niceText = 1 offset = 0, [10.h] } } 4.wrap = <br>|<br> }