---
title: "Wrap um jedes Bild (splitoption)"
url: "https://www.typo3.net/d/113757-wrap-um-jedes-bild-splitoption"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2013-02-04"
last_reply: "2013-02-04"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Wrap um jedes Bild (splitoption)

TYPO3 › TypoScript · 2 Antworten · gestartet 2013-02-04

## Eröffnungsbeitrag

**IngoM** · 2013-02-04 · [Beitrag #1](https://www.typo3.net/d/113757-wrap-um-jedes-bild-splitoption/1)

Hallo Zusammen,

ich habe folgendes Typoscript in Templavoila, welches mir einen String von Bildern splitet und ausgibt.
Ich möchte nun um jedes ausgegebene Bild noch einen Extra-Wrap.

Wie stelle ich das an?

10 = COA
                        10 {

                            10 = HTML

                            10 {

                                value.field = field_image_rotator

                                value.split {
                                   token = ,
                                   cObjNum = 1

1 {

10 = IMAGE
                                        10 {

                                           file {

                                                import.current = 1
                                                import = uploads/tx_templavoila/
                                                format = jpg
                                                width = 245c
                                                height = 155c
                                            }

                                        }

                                    }
                                }
                            }

                        }

## Antworten

### [#2](https://www.typo3.net/d/113757-wrap-um-jedes-bild-splitoption/2) · laptop24 · 2013-02-04

Wie sieht's denn aus mit:

```typoscript
10 = COA
10 {

  10 = HTML
  10 {
    value.field = field_image_rotator
    value.split {
      token = ,
      cObjNum = 1

      1 {
        10 = IMAGE
        10 {
          file {
            import.current = 1
            import = uploads/tx_templavoila/
            format = jpg
            width = 245c
            height = 155c
          }
        }
      }
      wrap = <div class="img-wrap">|</div>
    }
  }
}
```

### [#3](https://www.typo3.net/d/113757-wrap-um-jedes-bild-splitoption/3) · IngoM · 2013-02-04

Sobald ich einen Wrap reinmache,wird das Feld field_image_rotator nicht mehr gesplittet und auch nur als Text ausgegeben.

---

Quelle: „Wrap um jedes Bild (splitoption)“, typo3.net, https://www.typo3.net/d/113757-wrap-um-jedes-bild-splitoption
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
