---
title: "tt_content.wrap je nach Inhaltstyp"
url: "https://www.typo3.net/d/64396-tt-contentwrap-je-nach-inhaltstyp"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage","Inhaltselemente"]
created: "2007-06-25"
last_reply: "2007-09-13"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# tt_content.wrap je nach Inhaltstyp

TYPO3 › TypoScript · 2 Antworten · gestartet 2007-06-25

## Eröffnungsbeitrag

**m3typo3** · 2007-06-25 · [Beitrag #1](https://www.typo3.net/d/64396-tt-contentwrap-je-nach-inhaltstyp/1)

Hallo,

wie frage ich den Inhaltstyp von tt_content ab?

Wenn keine LIST dann

```typoscript
      CONTENT = CONTENT
      CONTENT {
         wrap = |<!--TYPO3SEARCH_begin--><!--TYPO3SEARCH_end-->
         table = tt_content
         select.orderBy = sorting
         select.where = colPos = 0
      }
```

und wenn LIST dann

```typoscript
      CONTENT = CONTENT
      CONTENT {
         wrap = <!--TYPO3SEARCH_begin-->|<!--TYPO3SEARCH_end-->
         table = tt_content
         select.orderBy = sorting
         select.where = colPos = 0
      }
```

## Antworten

### [#2](https://www.typo3.net/d/64396-tt-contentwrap-je-nach-inhaltstyp/2) · Unbekannter Benutzer · 2007-06-25

Hi,

Nicht getestet aber vielleicht bringt es dich irgendwie weiter:

```typoscript
CONTENT = CONTENT
      CONTENT {
         stdWrap.outerWrap.cObject = CASE 
         stdWrap.outerWrap.cObject{
            key.field = CType
            list = TEXT
            list.value = <!--TYPO3SEARCH_begin-->|<!--TYPO3SEARCH_end-->
            default = TEXT
            default.value = |<!--TYPO3SEARCH_begin--><!--TYPO3SEARCH_end-->
         }
         table = tt_content
         select.orderBy = sorting
         select.where = colPos = 0
      }
```

:D

### [#3](https://www.typo3.net/d/64396-tt-contentwrap-je-nach-inhaltstyp/3) · fuss · 2007-09-13

Hellas!

Vielen Dank, hat bei mir einwandfrei funktioniert!

gruss, fuss

---

Quelle: „tt_content.wrap je nach Inhaltstyp“, typo3.net, https://www.typo3.net/d/64396-tt-contentwrap-je-nach-inhaltstyp
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
