---
title: "images aus tt_content"
url: "https://www.typo3.net/d/115255-images-aus-tt-content"
source: "typo3.net"
tags: ["Allgemein","Bilder","Frage","Templates & Layouts"]
created: "2013-06-27"
last_reply: "2013-06-27"
replies: 4
solved: false
page: 1
pages: 1
lang: "de"
---

# images aus tt_content

Allgemein · 4 Antworten · gestartet 2013-06-27

## Eröffnungsbeitrag

**mzmicha** · 2013-06-27 · [Beitrag #1](https://www.typo3.net/d/115255-images-aus-tt-content/1)

hi leuts

ich möchte folgendes erreichen:
ich hab in meinem html template nen slider der so aussieht:

```html
<div id="slides">
<img src="images/image1_1.jpg" alt="" border="0" width="600" height="300">
<img src="images/image2_1.jpg" alt="" border="0" width="600" height="300">
<img src="images/image3_1.jpg" alt="" border="0" width="600" height="300">
<img src="images/image4_1.JPG" alt="" border="0" width="600" height="300">
<img src="images/image5_1.jpg" alt="" border="0" width="600" height="300">
</div>
```

hab das ganze mal so abgeändert :

```html
<div id="slides">
###SLIDER_IMAGES###
</div>
```

jetzt möchte ich gerne das der redakteur, unter SEITE an der colPos = 1 bilder einfügen, bzw entfernen kann und diese dann in meinem platzhalter SLIDER_IMAGES ersetzt werden.

hab dann mal folgendes ts probiert, was leider nicht funktioniert :

```typoscript
10.marks {
STATEMENT = CONTENT
STATEMENT {
table = tt_content
select {
orderBy = sorting
where = colPos = 2
}
renderObj = TEXT
renderObj.field = bodytext
renderObj.wrap = <div id="slider_text"> | </div>
}

CONTENT_HEAD = CONTENT
CONTENT_HEAD {
table = tt_content
select {
orderBy = sorting
where = colPos = 0
}
renderObj = TEXT
renderObj.field = header
}

CONTENT_MAIN = CONTENT
CONTENT_MAIN {
table = tt_content
select {
orderBy = sorting
where = colPos = 0
}
renderObj = TEXT
renderObj.field = bodytext
renderObj.wrap = | <br><br>
}

SLIDER_IMAGES = CONTENT
SLIDER_IMAGES {
table = tt_content
select {
orderBy = sorting
where = colPos = 1
}
renderObj = IMAGE
renderObj.field = bodytext
}
```

die texte holt er sich einwandfrei her, mit den images im letzten abschnitt des codes funktioniert das leider noch nicht.
kann mir eventuell jemand auf die sprünge helfen

gruss micha

## Antworten

### [#2](https://www.typo3.net/d/115255-images-aus-tt-content/2) · macuserpat · 2013-06-27

Versuchs mal so

```typoscript
SLIDER_IMAGES = CONTENT
SLIDER_IMAGES {
table = tt_content
select {
orderBy = sorting
where = colPos = 1
}
renderObj = COA
renderObj {
      1 = IMAGE
      1.file.import = uploads/pics/
      1.file.import.field = image
      1.file.width = 200c
      1.file.height = 200c 
}
}
```

### [#3](https://www.typo3.net/d/115255-images-aus-tt-content/3) · mzmicha · 2013-06-27

vielen lieben dank für die antwort.

funktioniert einwandfrei.  :D

ich versteh bloß folgendes nicht : #angry#

1.file.import = uploads/pics/
was ist das für ein pfad uploads/pics - den find ich nicht.

gruss micha

### [#4](https://www.typo3.net/d/115255-images-aus-tt-content/4) · zeroalpha · 2013-06-27

Hallo mzmicha,

TYPO3 kopiert Bilder, die du als Inhaltselement anlegst automatisch in dieses Verzeichnis und zieht es auch für die Darstellung auf der Webseite wieder aus diesem Verzeichnis.

Also selbst wenn ausversehen das von dir hochgeladene Bild in deinem Verzeichnis gelöscht wird, wird es im Frontend weiterhin richtig angezeigt.

Gruß

### [#5](https://www.typo3.net/d/115255-images-aus-tt-content/5) · mzmicha · 2013-06-27

hi zeroalpha

vielen dank für die antwort.

jetzt kapier ich es.

danke an alle :p

gruss micha

---

Quelle: „images aus tt_content“, typo3.net, https://www.typo3.net/d/115255-images-aus-tt-content
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
