---
title: "tt_content.image, CASE"
url: "https://www.typo3.net/d/94065-tt-contentimage-case"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2009-10-30"
last_reply: "2009-10-30"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# tt_content.image, CASE

TYPO3 › TypoScript · 1 Antwort · gestartet 2009-10-30

## Eröffnungsbeitrag

**tajo** · 2009-10-30 · [Beitrag #1](https://www.typo3.net/d/94065-tt-contentimage-case/1)

Hi,

hat jemand eine Alternative zu folgenden TypoScripts oder weiß wo der Fehler liegt?

```typoscript
temp.image_0 < tt_content.image.20.1
tt_content.image.20.1 >
tt_content.image.20.1 = CASE
tt_content.image.20.1.key.field = colPos
tt_content.image.20.1.0 < temp.image_0
tt_content.image.20.1.2 < temp.image_0
```

oder

```typoscript
temp.image_1 < tt_content.image.20
tt_content.image.20 >
tt_content.image.20 = CASE
tt_content.image.20.key.field = colPos
tt_content.image.20.0 < temp.image_1
tt_content.image.20.2 < temp.image_1
```

So funzts leider nicht!?
Fernziel der Übung wäre, Contentbilder **nur an einer bestimmten colPos** als Gifbuilder auszuführen.

Danke für eure Hilfe, Tajo

## Antworten

### [#2](https://www.typo3.net/d/94065-tt-contentimage-case/2) · tajo · 2009-10-30

Hier nochmal das ganze TypoScript. Hat irgendwer eine Idee wo der Fehler liegen kann?

```typoscript
temp.imagesetup < tt_content.image
tt_content.image >
tt_content.image = CASE
tt_content.image {

	key.field = colPos
	default < temp.imagesetup
	0 < temp.imagesetup
	0.20.1.file >
	0.20.1.file = GIFBUILDER
	0.20.1.file {
		
		XY = [10.w],[10.h]
	
		10 = IMAGE
		10.offset = 0,0
		10.file.import.current = 1
		10.file.width.field = imagewidth
		
		20 = IMAGE
		20.file = fileadmin/picsDefault/lo_24.png
		20.offset = 0,0
		20.file.width = 15
		
		30 = IMAGE
		30.file = fileadmin/picsDefault/lu_24.png
		30.offset = 0, [10.h]-15
		30.file.width = 15
		
		40 = IMAGE
		40.file = fileadmin/picsDefault/ro_24.png
		40.offset = [10.w]-15, 0
		40.file.width = 15
		
		50 = IMAGE
		50.file = fileadmin/picsDefault/ru_24.png
		50.offset = [10.w]-15, [10.h]-15
		50.file.width = 15
	}
}
```

Bin für jeden Tip dankbar!!!

---

Quelle: „tt_content.image, CASE“, typo3.net, https://www.typo3.net/d/94065-tt-contentimage-case
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
