---
title: "TS und RECORD mit IMAGE"
url: "https://www.typo3.net/d/18891-ts-und-record-mit-image"
source: "typo3.net"
tags: ["Allgemein","Frage","Kalender & Termine"]
created: "2004-12-07"
last_reply: "2009-03-10"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# TS und RECORD mit IMAGE

Allgemein · 1 Antwort · gestartet 2004-12-07

## Eröffnungsbeitrag

**Lord** · 2004-12-07 · [Beitrag #1](https://www.typo3.net/d/18891-ts-und-record-mit-image/1)

Hallo!

folgendes Problem (habe es bereits in der Mailing Liste gefragt jedoch ohne Erfolg :(  )

Ich benutze zur Zeit die Kalender extension de_simplecalendar.
Nun hat der programmiere auf typo3.org auch eine kleine Anleitung zum erweitern
des Single View veröffentlicht, allerdings fehlt hier das Anzeigen der Bilder....

Hier ist der Teil den man ergänzen soll:

```typoscript
plugin.tx_desimplecalendar_pi1.eventDetail {
			template.value >
			template.value (
				###date### ###time###<br>
				###title###<br>
				###image### ###description###<br>
				###organizer###<br>
				###location###<br>
				###category###<br>
				)
 			marks.organizer = RECORDS
                  marks.organizer {
				source.field = organizer
				tables = tx_desimplecalendar_organizer
				conf.tx_desimplecalendar_organizer = TEXT
				conf.tx_desimplecalendar_organizer.field = name
				}
			marks.location = RECORDS
                  marks.location  {
				source.field = location
				tables = tx_desimplecalendar_location
				conf.tx_desimplecalendar_location = TEXT
				conf.tx_desimplecalendar_location.field = name
				}
			marks.category = RECORDS
                  marks.category {
				source.field = category
				tables = tx_desimplecalendar_category
				conf.tx_desimplecalendar_category = TEXT
				conf.tx_desimplecalendar_category.field = category
				}
			}
```

Ich habe nun im TSRef nach einer Anleitung zu conf.xxxx geschaut, allerdings wird es dabei nur anhand von TEXT erklärt, was muss ich denn tun
damit auch das IMAGE aus der DB gelesen und dargestellt wird?
Standardmäßig holt die Extension sich die Bilder so:

```typoscript
				image = IMAGE
				image.file.import = uploads/tx_desimplecalendar/
				image.file.import.field = image
				image.file.maxW = {$plugin.tx_desimplecalendar_pi1.listView.image.maxW}
				image.file.maxH = {$plugin.tx_desimplecalendar_pi1.listView.image.maxH}
				image.wrap = <table class="list_item_imagetable"><tr><td>|</td></table>
```

und Text so:

```typoscript
				title = TEXT
				title.field = title
				title.typolink.parameter = {$plugin.tx_desimplecalendar_pi1.listLink.parameter.page},{$plugin.tx_desimplecalendar_pi1.listLink.parameter.type} {$plugin.tx_desimplecalendar_pi1.listLink.parameter.target} {$plugin.tx_desimplecalendar_pi1.listLink.parameter.titleclass}
				title.typolink.additionalParams.field = uid
				title.typolink.additionalParams.wrap = &tx_desimplecalendar_pi1[showUid]=|
				{$plugin.tx_desimplecalendar_pi1.backPath} title.typolink.additionalParams.postUserFunc = tx_desimplecalendar_form->getBackPath
```

Naja bin da nun leicht verwirrt und hab auch schon verschiedende Sachen probiert:

```typoscript
marks.caticon = RECORDS
                  marks.caticon {
                                		source.field =  caticon
				tables = tx_desimplecalendar_category
				conf.tx_desimplecalendar_category = IMAGE
                                		conf.tx_desimplecalendar_category.field = caticon
}
```

und

```typoscript
marks.caticon = RECORDS
                  marks.caticon {
				caticon = IMAGE
				caticon.file.import = uploads/tx_desimplecalendar/
				caticon.file.import.field = caticon
				caticon.file.maxW = {$plugin.tx_desimplecalendar_pi1.listView.image.maxW}
				caticon.file.maxH = {$plugin.tx_desimplecalendar_pi1.listView.image.maxH}
				caticon.wrap = <table class="list_item_imagetable"><tr><td>|</td></table>
}
```

Und vorher hab ich natürlich auch noch einen marker passend zu caticon gesetzt....

Bin für jede HIlfe dankbar und würde mich über eine kleine Erklärung freuen!!

Vielen Dank !
Gruss aus Rheinhessen

## Antworten

### [#2](https://www.typo3.net/d/18891-ts-und-record-mit-image/2) · kleber · 2009-03-10

So habe ich das Problem gelöst:

typo3conf\ext\de_simplecalendar\ext_typoscript_setup.txt

```typoscript
plugin.tx_desimplecalendar_pi1.listItem = TEMPLATE
plugin.tx_desimplecalendar_pi1.listItem {
   template = HTML
   template.value (
      ###category###<br>
      ###catimage###
   )
template.value.wrap = <div class='list_item_wrap'>|</div>
			
marks {
   category = RECORDS
   category.source.field = category
   category.tables = tx_desimplecalendar_category
   category.conf.tx_desimplecalendar_category = TEXT
   category.conf.tx_desimplecalendar_category.field = category
   category.wrap = |

   catimage = RECORDS
   catimage.source.field = category
   catimage.tables = tx_desimplecalendar_category
   catimage.conf.tx_desimplecalendar_category = IMAGE
   catimage.conf.tx_desimplecalendar_category.file.import = uploads/tx_desimplecalendar/
   catimage.conf.tx_desimplecalendar_category.file.import.field = caticon
   catimage.wrap = |
				
   ...
   }
}
```

---

Quelle: „TS und RECORD mit IMAGE“, typo3.net, https://www.typo3.net/d/18891-ts-und-record-mit-image
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
