---
title: "tx_automaketemplate_pi1 => Leere Seite"
url: "https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2006-01-17"
last_reply: "2006-06-06"
replies: 11
solved: false
page: 1
pages: 1
lang: "de"
---

# tx_automaketemplate_pi1 => Leere Seite

Allgemein · 11 Antworten · gestartet 2006-01-17

## Eröffnungsbeitrag

**code_pilot** · 2006-01-17 · [Beitrag #1](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/1)

Hallo!

Ich weis das dieses Problem schon hier öfters Diskutiert wurde, aber die dort gegebenen Lösungen habe ich alle schon erfolglos ausprobiert.

Ich habe mir, wie viele andere auch, das Typo3 Howto "Moderne Template Erstellung, Teil 1" zu gemüte geführt, um ein Template für meine Website in Typo3 zu bekommen.

Tja nur leider mag mich die problemslos installierte tx_automaketemplate_pi1 nicht.

Mein Script, welches ich aus dem Tutorial kopiert und an meine Pfade angepasst habe:

```typoscript
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 
  {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/index.html

  # Here we define which elements in the HTML that 
  # should be wrapped in subpart-comments:

  elements 
  {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title

    DIV.all = 1
  }

    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/

}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode=1
page.10 =< plugin.tx_automaketemplate_pi1
```

Wenn ich dieses Template einbinde und meine Site öffne, wird rein gar nichts angezeigt. Eine leere HTML-Seite, der Code ist komplett leer.

Ich weis so langsam echt nicht mehr weiter oder was ich davon halten soll.

-- code_pilot #angry#

## Antworten

### [#2](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/2) · Saggi · 2006-01-17

Hi,

hast du denn den template pfad angepasst d.h. hast du dein Template auch wirklich in template/main/ drin und heißt dein template auch wirklich index.html?

Noch was lass mal den relPathPrefix einfach weg und schau was passiert

Gruß Saggi

### [#3](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/3) · code_pilot · 2006-01-17

Hallo Saggi,

wie schon gesagt, das habe ich alles ausprobiert. Der Pfad ist völlig korrekt.

Gruß

code_pilot

### [#4](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/4) · code_pilot · 2006-01-17

mir ist aber gerade im Object Browser noch was aufgefallen:

> 2:    Line 1137: Object Name String, "plugin.tx_automaketemplate_pi1" was not preceeded by any operator, =<>({
> 2:    Line 1146: Object Name String, "elements" was not preceeded by any operator, =<>({
> 1:    Line 1156: An end brace is in excess.
> 1:    Line 1157: An end brace is in excess.

Ich denke mal das hat doch irgendwie was zu sagen???

### [#5](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/5) · Saggi · 2006-01-17

Ja dann noch was:

Benutzt du denn in deiner HTML-Vorlage auch div tags oder tabellen?

ansonsten fehlt dir noch was im template setup füg einfach mal das bei dir im setup ein:

```typoscript
### cObject für den Header ###

temp.headerTemplate = TEMPLATE
temp.headerTemplate {
        template =< plugin.tx_automaketemplate_pi1
        workOnSubpart = DOCUMENT_HEADER
                              }
```

und dann noch das:

```typoscript
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    template =< plugin.tx_automaketemplate_pi1
    workOnSubpart = DOCUMENT_BODY
    subparts.content < styles.content.get
    stylesheet = fileadmin/BS/Styles/formate.css

subparts.deine_id_für_jeweiligen_bereich = TEXT
subparts.deine_id_für_jeweiligen_bereich.value = test

}
```

uns melde was passiert
natürlich den pfad für stylesheet und so weiter anpassen...

### [#6](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/6) · code_pilot · 2006-01-17

Hi!

Mein Script sieht jetzt so aus, mit selbigem Resultat (also: Nix!):

```typoscript
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1
  {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/index.html

  # Here we define which elements in the HTML that
  # should be wrapped in subpart-comments:

  elements
  {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title

    DIV.all = 1
  }
}


temp.headerTemplate = TEMPLATE
temp.headerTemplate {
        template =< plugin.tx_automaketemplate_pi1
        workOnSubpart = DOCUMENT_HEADER
} 

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    template =< plugin.tx_automaketemplate_pi1
    workOnSubpart = DOCUMENT_BODY
    subparts.content < styles.content.get
    stylesheet = fileadmin/template/main/jmksf.css

    subparts.content = TEXT
    subparts.content.value = test
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode=1
page.10 =< plugin.tx_automaketemplate_pi1
```

Auch ein testweises

```typoscript
page.10 =< temp
```

bringt hier nichts.

Wenn das mit dem doofen Parser nicht klappt, kann ich dann auch genauso dynamische Templates manuell erstellen, also mit manuellen Bereichen und gibt es dazu ein gutes Tutorial?? Dieses "Moderne Template Erstellung" habe ich nämlich langsam satt, da ich echt mal Ergebnisse, und nicht Probleme sehen möchte. #paralyzed#

Ach so, das Problem mit dem "Errors & Warnings" existiert weiterhin:

> 2:    Line 1137: Object Name String, "plugin.tx_automaketemplate_pi1" was not preceeded by any operator, =<>({
> 2:    Line 1146: Object Name String, "elements" was not preceeded by any operator, =<>({
> 1:    Line 1156: An end brace is in excess.
> 1:    Line 1157: An end brace is in excess.

Gruß
-- code_pilot

### [#7](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/7) · Saggi · 2006-01-17

Hab noch was vergessen

füge anstatt der Zeile 46 dass hier ein und es sollte funktionieren

```typoscript
page.headerData.10 < temp.headerTemplate
page.10 < temp.mainTemplate
```

und kommentiere die Zeile 45 aus.

Gruß
Saggi

PS: Nicht verzweifeln

### [#8](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/8) · code_pilot · 2006-01-17

Hi!

Nö geht auch nicht. Kein Effekt  :'(

```typoscript
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1
  {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/index.html

  # Here we define which elements in the HTML that
  # should be wrapped in subpart-comments:

  elements
  {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title

    DIV.all = 1
  }
}


temp.headerTemplate = TEMPLATE
temp.headerTemplate {
        template =< plugin.tx_automaketemplate_pi1
        workOnSubpart = DOCUMENT_HEADER
} 

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    template =< plugin.tx_automaketemplate_pi1
    workOnSubpart = DOCUMENT_BODY
    subparts.content < styles.content.get
    stylesheet = fileadmin/template/main/jmksf.css

    subparts.content = TEXT
    subparts.content.value = test
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode=1
page.headerData.10 < temp.headerTemplate
page.10 < temp.mainTemplate
```

-- code_pilot

### [#9](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/9) · Saggi · 2006-01-17

hey coder dann noch was

hast du in deinem template-record folgendes bei include static:
content(default) und styles.content(default) eingefügt?

und bei Include static(from extensions):
CSS Styled Content(css_styled_content)?

### [#10](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/10) · code_pilot · 2006-01-17

hi saggi,

hab ich gerade eingefügt. Bring ebenfalls nichts :( #angry#

### [#11](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/11) · Saggi · 2006-01-17

config.disableAllHeaderCode = 1 auskommentieren oder weg lassen falls das nichts hilft bin ich mit meinem Latein am Ende
Nebenbei kommen die Fehlermeldungen denn noch?
Schönen Gruß

Saggi

### [#12](https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite/12) · spider1009 · 2006-06-06

Hallo Ihr lieben Leute,

ich habe das gleiche Problem wie hier beschrieben und komme einfach nicht dahinter, woran es liegt. Das komische ist wenn ich (bevor ich ein div Tag austauschen lasse) alle td Tags markiere, zeigt er mir noch den größten Teil der Seite an. Nehme ich die TD Markierung raus bleibt die Seite leer. Ich komme da nicht weiter. Mein Code:

```typoscript
*
Configuring the Auto-Parser:
and create the markers for content
*/
plugin.tx_automaketemplate_pi1 {

    # Read the template file:

  content = FILE

  content.file = fileadmin/main_template/template.html

    # Here we define which elements in the HTML that 

    # should be wrapped in subpart-comments:

  elements {

    BODY.all = 1

    BODY.all.subpartMarker = DOCUMENT_BODY

    HEAD.all = 1

    HEAD.all.subpartMarker = DOCUMENT_HEADER

    HEAD.rmTagSections = title

    TD.all = 1

    DIV.class.bottom_adress = 1

    #TITLE.all = 1

    #TITLE.all.subpartMarker = SITETITLE  

    #DIV.class.upperFirstMenu= 1
/*
    DIV.class.upperFirstMenu.includeWrappingTag = 1

    DIV.class.upperFirstMenu.subpartMarker  = UPPERFIRSTMENU

    DIV.class.upperSecondMenu = 1

    DIV.class.upperSecondMenu.includeWrappingTag = 0

    DIV.class.upperSecondMenu.subpartMarker  = UPPERSECONDMENU

    DIV.class.leftMenu = 1

    DIV.class.leftMenu.includeWrappingTag = 1

    DIV.class.leftMenu.subpartMarker  = LEFTMENU

    DIV.class.sitePic = 1

    DIV.class.sitePic.includeWrappingTag = 1

    DIV.class.sitePic.subpartMarker  = SITEPIC

    DIV.class.stnd_content_margin = 1

    DIV.class.stnd_content_margin.subpartMarker  = MAINCONTENT
*/

  }

    # Prefix all relative paths with this value:

  relPathPrefix = fileadmin/main_template/
}

# 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>-tags

  workOnSubpart = DOCUMENT_BODY

}

# 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>-tags

  workOnSubpart = DOCUMENT_HEADER

}

# Default PAGE object:

page = PAGE

page.typeNum = 0

# Copying the content from TEMPLATE for <body>-section:

page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:

page.headerData.10  < temp.headTemplate
```

Er zeigt mir wie gesagt noch nicht mal die Seite an sobald ich als erstes ein div markieren lasse. Langsam zweifele ich auch selber an mir.

#angry#

Grüße Alexander

---

Quelle: „tx_automaketemplate_pi1 => Leere Seite“, typo3.net, https://www.typo3.net/d/36324-tx-automaketemplate-pi1-leere-seite
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
