---
title: "Probleme mit Modern Template Building tutorial"
url: "https://www.typo3.net/d/74445-probleme-mit-modern-template-building-tutorial"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2008-03-04"
last_reply: "2008-03-05"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Probleme mit Modern Template Building tutorial

Allgemein · 1 Antwort · gestartet 2008-03-04

## Eröffnungsbeitrag

**malandro** · 2008-03-04 · [Beitrag #1](https://www.typo3.net/d/74445-probleme-mit-modern-template-building-tutorial/1)

Hallo ich versuche schon zeit ein paar tage denn Fehler zu finden aber nichts.

Ich verfolge das Modern Template Building tutorial und es klappt alles wunderbar bis ich das Menu erstelle, die erste level passt aber die 2te level ist nicht zu sehen, kann mir jemand weiter helfen?

ich benutze typo3 4.1.5 aber habe das update nicht durchgeführt also rennt als 3.8 oder was Standard ist!

mein setup code sieht so aus

```typoscript
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/template_1.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
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}

# Menu 1 cObject

temp.menu_1 = HMENU

  # First level menu-object, textual

temp.menu_1.1 = TMENU

temp.menu_1.1 {

    # Normal state properties

  NO.allWrap = <div class="menu1-level1-no"> | </div>

  NO.stdWrap.htmlSpecialChars = 1

    # Enable active state and set properties:

  ACT = 1

  ACT.stdWrap.htmlSpecialChars = 1

  ACT.allWrap = <div class="menu1-level1-act"> | </div>

}

  # Second level menu-object, textual

temp.menu_1.2 = TMENU

temp.menu_1.2 {

    # Normal state properties

  NO.allWrap = <div class="menu1-level2-no"> | </div>

  NO.stdWrap.htmlSpecialChars = 1

    # Enable active state and set properties:

  ACT = 1

  ACT.stdWrap.htmlSpecialChars = 1

  ACT.allWrap = <div class="menu1-level2-act"> | </div>

}


# 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

# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1


# Substitute the ###content### subpart with some example content:
subparts.content = TEXT
subparts.content.value = HELLO WORLD - CONTENT
}
# 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
```

und die Seite ist hier zu finden:
<http://tuxito.net/index.php?id=1>

wo kann das Problem liegen?
Danke

## Antworten

### [#2](https://www.typo3.net/d/74445-probleme-mit-modern-template-building-tutorial/2) · malandro · 2008-03-05

hmm jetzt funktioniert es auf einmal, passiert mir schon zum 2ten mal, erst hatte ich Probleme mit denn Pfad und jetzt mit den menu, nach öfters löschen und wieder einfügen oder teile selbst schreiben funktioniert es auf einmal, sehr komisch.

naja ist aber erledigt, hat sonst jemand auch solche Probleme gehabt?

---

Quelle: „Probleme mit Modern Template Building tutorial“, typo3.net, https://www.typo3.net/d/74445-probleme-mit-modern-template-building-tutorial
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
