---
title: "treeLevel ... conditions allgemein"
url: "https://www.typo3.net/d/41466-treelevel-conditions-allgemein"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2006-04-15"
last_reply: "2006-04-16"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# treeLevel ... conditions allgemein

TYPO3 › TypoScript · 1 Antwort · gestartet 2006-04-15

## Eröffnungsbeitrag

**vincentk** · 2006-04-15 · [Beitrag #1](https://www.typo3.net/d/41466-treelevel-conditions-allgemein/1)

mein setup ist der folgende:

eine file-struktur:
root/
root/fileA
root/fileB

sowie ein template fuer's root

```typoscript
page = PAGE
page {
  10 = TEMPLATE
  10 {
    template = FILE
    template.file = fileadmin/template/main.html
    [treeLevel = 0]
    subparts {
      MAINCONTENT = IMAGE
      MAINCONTENT.file = fileadmin/template/img/file.png    
    }
    [end]
  }
}
```

was ich damit eigentlich bezwecken will, ist dass auf der einstiegsseite (i.e. root) der mit ###MAINCONTENT### ausgezeichnete part durch ein bild ersetzt wird, jedoch nicht auf den anderen seiten (root/fileA)... er wird jedoch immer ersetzt... ? verwende ich den condition-syntax ueberhaupt korrekt? wenn ich nach entsprechenden beispielen suche, fine ich haeufig dinge wie

```typoscript
[treeLevel = 0]
foo = bar
[global]
```

i.e. ein "global" statt ein "end", wie es in der TSRef steht...

liebe gruesse,
v.

## Antworten

### [#2](https://www.typo3.net/d/41466-treelevel-conditions-allgemein/2) · vincentk · 2006-04-16

die antwort ist fuenf posts weiter unten:
[/d/41444-conditions-problem](https://www.typo3.net/d/41444-conditions-problem)

keine conditions in {}

sorry. ;-)
v.

---

Quelle: „treeLevel ... conditions allgemein“, typo3.net, https://www.typo3.net/d/41466-treelevel-conditions-allgemein
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
