---
title: "TS für Inhaltselemt"
url: "https://www.typo3.net/d/104175-ts-fuer-inhaltselemt"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","Inhaltselemente"]
created: "2011-03-01"
last_reply: "2011-03-01"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# TS für Inhaltselemt

TYPO3 › TypoScript · 1 Antwort · gestartet 2011-03-01

## Eröffnungsbeitrag

**skriptkiddie** · 2011-03-01 · [Beitrag #1](https://www.typo3.net/d/104175-ts-fuer-inhaltselemt/1)

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?

## Antworten

### [#2](https://www.typo3.net/d/104175-ts-fuer-inhaltselemt/2) · udowald · 2011-03-01

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...

```typoscript
[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.

```typoscript
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
}
```

---

Quelle: „TS für Inhaltselemt“, typo3.net, https://www.typo3.net/d/104175-ts-fuer-inhaltselemt
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
