---
title: "TYPO3 4.7, doppelter stdWrap!?"
url: "https://www.typo3.net/d/111051-typo3-47-doppelter-stdwrap"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","Inhaltselemente"]
created: "2012-06-20"
last_reply: "2013-04-15"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# TYPO3 4.7, doppelter stdWrap!?

TYPO3 › TypoScript · 1 Antwort · gestartet 2012-06-20

## Eröffnungsbeitrag

**ra.​s** · 2012-06-20 · [Beitrag #1](https://www.typo3.net/d/111051-typo3-47-doppelter-stdwrap/1)

Hallo zusammen,

ich habe folgendes Problem: Wenn ich tt_content.textpic.20 um stdWrap.wrap erweitere, wird mir dieser wrap 2 mal um tt_content.textpic.20 gelegt.

```typoscript
tt_content.textpic.20.stdWrap.wrap = <div class="box">|</div>
```

Ergebnis:

```html
<div class="box">
  <div class="box">
    Inhalt
    ...
    ...
  </div>
</div>
```

Verstehe ich da was am überarbeiteten Content-Rendering nicht oder ist das ein Bug?

Grüße,
Ralf

## Antworten

### [#2](https://www.typo3.net/d/111051-typo3-47-doppelter-stdwrap/2) · SomehowLost · 2013-04-15

Hallo,

um zumindest eine Lösung anzubieten:

```typoscript
tt_content.textpic.20 >
tt_content.textpic.20 = COA
tt_content.textpic.20 {
  wrap = <div class="box">|</div>
  10 < tt_content.image.20
  10 {
    text.10 = COA
    text.10 {
      if.value = 24
      if.isGreaterThan.field = imageorient
      10 = < lib.stdheader
      10.stdWrap.dataWrap = <div class="csc-textpicHeader csc-textpicHeader-{field:imageorient}">|</div>
    }
    text.20 = < tt_content.text.20
    text.wrap = <div class="csc-textpic-text"> | </div>
  }
}
```

Das funktionert zumindest bei Version 6 (Version 4.7 hat an dieser Stelle das gleiche TS).

Viele Grüße,
Andreas

---

Quelle: „TYPO3 4.7, doppelter stdWrap!?“, typo3.net, https://www.typo3.net/d/111051-typo3-47-doppelter-stdwrap
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
