---
title: "Prüfen ob Inhalt da ist"
url: "https://www.typo3.net/d/33650-pruefen-ob-inhalt-da-ist"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2005-11-22"
last_reply: "2005-11-27"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Prüfen ob Inhalt da ist

TYPO3 › TypoScript · 3 Antworten · gestartet 2005-11-22

## Eröffnungsbeitrag

**Bärlie** · 2005-11-22 · [Beitrag #1](https://www.typo3.net/d/33650-pruefen-ob-inhalt-da-ist/1)

Hallo!

Ich würde gerne in meinem TypoScript prüfen, ob für einen bestimmten Bereich Inhalt da ist. Ich habe bis jetzt folgendes in meinem Code stehen:

```typoscript
temp.leftcolumn = CONTENT
temp.leftcolumn {
  table = tt_content
  select.orderBy = sorting
  select.where = colPos=1
}
temp.leftcolumn.if.isTrue.wrap = <br /><hr />|
```

Der Inhalt in der linken Spalte wird zwar angezeigt, aber die Linie davor nicht  :'(

Mit

```typoscript
temp.leftcolumn.wrap = <br /><hr />|
```

wird die Linie auf jeden Fall angezeigt, auch wenn kein Inhalt dar ist. Die Linie soll aber nur aufscheinen, wenn Inhalt da ist, und nicht wenn kein Inhalt da ist. Was mach ich da falsch? Oder hab ich überhaupt das Prinzip von isTrue falsch verstanden?

## Antworten

### [#2](https://www.typo3.net/d/33650-pruefen-ob-inhalt-da-ist/2) · steffenk · 2005-11-22

versuchs mal mit

```typoscript
temp.leftcolumn.stdWrap.required = 1
temp.leftcolumn.stdWrap.wrap = <ht />|
```

### [#3](https://www.typo3.net/d/33650-pruefen-ob-inhalt-da-ist/3) · Bärlie · 2005-11-22

oh, ja das funktioniert! Danke!

### [#4](https://www.typo3.net/d/33650-pruefen-ob-inhalt-da-ist/4) · sehfahrer · 2005-11-27

Ich bedanke mich auch! Hab zwar nicht gefragt, aber die Antwort nützt mir trotzdem  :D

---

Quelle: „Prüfen ob Inhalt da ist“, typo3.net, https://www.typo3.net/d/33650-pruefen-ob-inhalt-da-ist
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
