Hallo Zusammen,
wie kann ich für ein bestimmtes Content-Element ein TS definieren?
ich habe ein Content-Element für Bilder, dieses hat von mir ein eigenes Frame bekommen und nun möchte ich, dass dort die List (ul) nicht nicht angezeigt werden aber nur für dieses Content-Element?
Hallo skripkiddie,
Du kannst das mit einer Condition lösen und den ursprünglichen css_styled_content neu definieren. In dem Beispiel hatte ich eine Bildgalerie mit Hintergrundrahmen erzeugt, der sich der tatsächlichen Bildgröße anpasst.
Welche Condition Du nimmst ist egal z.B Seitenbeogen mit [PIDinRootLine] oder, oder...
[globalVar=TSFE:page|tx_rlmptmplselector_main_tmpl=mary_gal.html]
# css_styled_content Konfiguration wird gelöscht.
tt_content.image.20.1.file >
# und neu konfiguriert.
tt_content.image.20.1.file = GIFBUILDER
tt_content.image.20.1.file {
XY = 220,220
backColor = #ffffff
reduceColors = 255
transparentColor = #FCFEFC
10 = IMAGE
10 {
file.maxW = 200
file.maxH = 200
file.import.current = 1
}
20 = BOX
20.dimensions = 0,0,220,220
20.color = white
30 = BOX
30.dimensions = 220-[10.w]/2-6,220-[10.h]/2-6,[10.w]+12,[10.h]+12
35 = BOX
35.dimensions = 220-[10.w]/2-2,220-[10.h]/2-2,[10.w]+4,[10.h]+4
35.color = #80C9C2
36 = BOX
36.dimensions = 220-[10.w]/2-1,220-[10.h]/2-1,[10.w]+2,[10.h]+2
36.color = #ffffff
31 = EFFECT
31.value = blur=40 | gamma = 1.0
50 < .10
50.offset = 220-[10.w]/2,220-[10.h]/2
}
[global]
Oh hab übersehen dass Du das auf Contentebene brauchst.
Das geht über eine CASE condition recht gut. Einem CASE Object kannst Du auch TypoSript Konfigurationen zuweisen z.B.
tt_content.textpic >
tt_content.textpic = CASE
tt_content.textpic {
// keyfield
key.field = header_layout
0 < temp.textpicOriginal
1 < temp.textpicOriginal
2 < temp.textpicOriginal
3 < temp.textpicOriginal
4 < temp.textpicOriginal
5 < temp.textpicOriginal
6 < temp.textpicCustom
7 < temp.textpicCustom
8 < temp.textpicCustom
}