---
title: "Probleme mit HTML-Template"
url: "https://www.typo3.net/d/18255-probleme-mit-html-template"
source: "typo3.net"
tags: ["Backend","Frage"]
created: "2004-11-21"
last_reply: "2005-01-27"
replies: 5
solved: false
page: 1
pages: 1
lang: "de"
---

# Probleme mit HTML-Template

Backend · 5 Antworten · gestartet 2004-11-21

## Eröffnungsbeitrag

**Frank.​V.​** · 2004-11-21 · [Beitrag #1](https://www.typo3.net/d/18255-probleme-mit-html-template/1)

Hallo Leute,
beim Testen der v3.7.0 ist mir etwas aufgefallen, was ich nicht bisher lösen konnte:
Der Scriptcode unter 3.5.0 funktioniert nicht mehr unter 3.7.0. Es scheint, als ist die funktionsweise
des Autotemplateparser verändert.
Bsp: Eine Hauptseite mit HTML-Template (unter fileadmin/template/main/vorlage.html)
zeigt nichts mehr an - der Bodytag im HTML des Frontends bleibt leer (Seite bleibt weiß...).
Geladen sind die EXT css_styled_content und automaketemplate.
Frage: Hat sich etwas grundlegendes geändert ?

Hier mal mein Templatecode:

------------------------------------------------------------------------------------------------------
###
### Configuring the auto-parser for the main template ###
###
plugin.tx_automaketemplate_pi1 {
  # read the template file
  content =  FILE
  content.file = fileadmin/template/main/vorlage.html
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY
    #
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title
    #
    TD.all = 1
  }
  ### Prefix all relative paths this value ###
  relPathPrefix = fileadmin/template/main/
}

###
### Main template cObject for the body ###
###
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  # Feeding the content from the Auto-Parser to the template cObject
  template =< plugin.tx_automaketemplate_pi1
  # Select only the content between the <body> tag
  workOnSubpart = DOCUMENT_BODY
  # Substitude the ###IMG_LEFT### subpart with a picture
  subparts.img_left = IMAGE
  subparts.img_left.file =  fileadmin/template/main/images/InMotionLogo.gif
  # copying the clickmenu
  #subparts.nav_stat < temp.nav_stat
  #...
}

### Main template cObject for the HEAD ###
temp.headTemplate = TEMPLATE
temp.headTemplate {
  # Feeding the content from the Auto-Parser to the template cObject
  template =< plugin.tx_automaketemplate_pi1
  # Select only the content between the <head> tag
  workOnSubpart = DOCUMENT_HEADER
}

### Default Page object ###
page = PAGE
page.typeNum = 0
#copying the content from template for <body>-section
page.stylesheet = fileadmin/template/main/res/stylesheet.css
page.10 < temp.mainTemplate
#copying the content from template for <head>-section
page.headerData.10 < temp.headTemplate
------------------------------------------------------------------------------------------------------

Grüsse Frank

## Antworten

### [#2](https://www.typo3.net/d/18255-probleme-mit-html-template/2) · w@ · 2005-01-26

Hallo Frank

Schlage mich gerade mit demselben Problem herum....

Hast du da schon was rausgefunden.....????  :o

Wäre froh um jedwelche Tipps.....

Merci und gruss Peter

<-- Nachtrag -->
PS: der Header Teil schein bei mir richtig aufgelöst zu werden
lediglich der Body Teil macht probleme.....
<-- Nachtrag ende -->

### [#3](https://www.typo3.net/d/18255-probleme-mit-html-template/3) · Frank.​V.​ · 2005-01-26

Hallo Peter,

tja, die Antwort wird Dir nicht gefallen:
Nachdem ich mit verschiedenen Leuten gesprochen habe, wurde mir (auch von mittwald medien) geraten, auf die Extension Autotemplateparser zu verzichten.
Habe nun alles auf "normale" Templates umgestellt -
-----------------
...
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  # Feeding the content from the Auto-Parser to the template cObject
  template = FILE
  template.file = fileadmin/template/vorlage.html
  # Select only the content between the <body> tag
  workOnSubpart = DOCUMENT_BODY
  #workOnSubpart = IMG_LEFT
  # Substitude the ###IMG_LEFT### mark with a picture
  marks{
    IMG_LEFT = IMAGE
    IMG_LEFT.file =  fileadmin/template/images/banner01.jpg
...
-----------------
läuft alles

Grüsse Frank

### [#4](https://www.typo3.net/d/18255-probleme-mit-html-template/4) · Frank.​V.​ · 2005-01-26

wie von Dir schon richtigerweise festgestellt, ist nur der body betroffen...

Grüsse Frank

### [#5](https://www.typo3.net/d/18255-probleme-mit-html-template/5) · w@ · 2005-01-27

Hallo Frank

...kein Problem...
Arbeiten wir halt weiterhin wie gewohnt....
wäre halt mal ne nette Abwechslung gewesen.

Hast du eigentlich auch ein Feedback bekommen, wo
denn nun das eigentliche Problem liegt?
bzw. ob eine Verbesserung in Aussicht ist.....?

Vielen Dank
Gruss Peter

### [#6](https://www.typo3.net/d/18255-probleme-mit-html-template/6) · Frank.​V.​ · 2005-01-27

> Hast du eigentlich auch ein Feedback bekommen, wo
> denn nun das eigentliche Problem liegt?
> bzw. ob eine Verbesserung in Aussicht ist.....?

Ne, das ist leider die Kehrseite an solchen Systemen wie Typo...
Aber eigentlich ist die Extension ja nicht wirklich wichtig - dumm nur, das in div. Manuals die Beispiele damit gemacht wurden

---

Quelle: „Probleme mit HTML-Template“, typo3.net, https://www.typo3.net/d/18255-probleme-mit-html-template
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
