---
title: "TypoScript-Bedingung funktioniert nicht"
url: "https://www.typo3.net/d/76259-typoscript-bedingung-funktioniert-nicht"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2008-04-18"
last_reply: "2008-04-18"
replies: 4
solved: false
page: 1
pages: 1
lang: "de"
---

# TypoScript-Bedingung funktioniert nicht

TYPO3 › TypoScript · 4 Antworten · gestartet 2008-04-18

## Eröffnungsbeitrag

**webcompas** · 2008-04-18 · [Beitrag #1](https://www.typo3.net/d/76259-typoscript-bedingung-funktioniert-nicht/1)

Hallo!

Ich habe ein TypoScript-Template erstellt, bei dem die Intro-Seite anders gestaltet sein soll. Deshalb habe ich dafür am Ende des TypoScript-Codes folgendes angefügt:

```typoscript
[globalVar = TSFE:id = 1]
seite >
seite = PAGE
# weitere TypoScript-Angabem
```

Leider wird die Intro-Seite trotzdem mit dem normalen Design dargestellt. Kann sich das jemand erklären?

MfG
Pascal

## Antworten

### [#2](https://www.typo3.net/d/76259-typoscript-bedingung-funktioniert-nicht/2) · einpraegsam.​net · 2008-04-18

> **webcompas schrieb:**
>
> Kann sich das jemand erklären?

Nicht ohne das komplette TS...

### [#3](https://www.typo3.net/d/76259-typoscript-bedingung-funktioniert-nicht/3) · webcompas · 2008-04-18

Hier das vollständige TypoScript-Template:

```typoscript
config.language = de
config.locale_all = de_DE
config.simulateStaticDocuments = 0
config.baseURL = http://test.testseite.de
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
config.doctype = xhtml_trans
config.xhtml_cleaning = all
config.htmlTag_langKey = de

seite = PAGE
seite {
  config.additionalHeaders = Content-Type:text/html;charset=utf-8
  config.metaCharset = utf8
  
  
  includeCSS.file1 = fileadmin/templates/styles_main.css
  bodyTagMargins = 0
  bodyTagMargins.useCSS = 1
  
  10 = TEMPLATE
  10 {
    template = FILE
    template.file = fileadmin/templates/main.tpl
    
    marks {
      MENU_TOP = HMENU
      MENU_TOP.1 = TMENU
      MENU_TOP.1 {
      	NO = 1
        NO.allWrap = <td>|</td>
        ACT = 1
        ACT.ATagParams = class="act"
        ACT.allWrap = <td>|</td>
        }
      MENU_LEFT = HMENU
      MENU_LEFT.entryLevel = 1
      MENU_LEFT.1 = TMENU
      MENU_LEFT.1 {
      	NO = 1
      	NO.allWrap = <li>|</li>
        CUR = 1
        CUR.ATagParams 	= class="act"
        CUR.allWrap = <li class="act">|</li>
      }
    }
  }

###########################
# INTRO-Seite
###########################

[globalVar = TSFE:id = 1]
seite >
seite = PAGE
seite {
  typeNum = 0
  bodyTagMargins = 0
  bodyTagMargins.useCSS = 1
  includeCSS.file1 = fileadmin/templates/styles_main.css
  10 = TEXT
  10.value (
<table border="0" align="center" style="width: 100%; height: 100%">
<tr>
<td>&nbsp;</td>
<td width="579" align="center" valign="middle">
)

  12 < styles.content.get
  13 = TEXT
  13.value (
</td>
<td>&nbsp;</td>
</tr>
</table>
)
[GLOBAL]
```

### [#4](https://www.typo3.net/d/76259-typoscript-bedingung-funktioniert-nicht/4) · SLAng · 2008-04-18

In deiner Condition fehlt eine schließende geschweifte Klammer

### [#5](https://www.typo3.net/d/76259-typoscript-bedingung-funktioniert-nicht/5) · webcompas · 2008-04-18

OK, damit funktioniert's jetzt! Vielen Dank!

MfG
Pascal

---

Quelle: „TypoScript-Bedingung funktioniert nicht“, typo3.net, https://www.typo3.net/d/76259-typoscript-bedingung-funktioniert-nicht
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
