---
title: "Kurze Frage zu einem Menueproblem"
url: "https://www.typo3.net/d/14204-kurze-frage-zu-einem-menueproblem"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2004-08-02"
last_reply: "2004-08-02"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Kurze Frage zu einem Menueproblem

TYPO3 › Menüs · 1 Antwort · gestartet 2004-08-02

## Eröffnungsbeitrag

**Dirk Büchel** · 2004-08-02 · [Beitrag #1](https://www.typo3.net/d/14204-kurze-frage-zu-einem-menueproblem/1)

Ich habe versucht mir ein neues Template Anhand des Dokus: Modern Template.

Soweit so gut.... es funktioniert auch alles mir 4 Rubriken etc.

Nun will ich ein Menue automaisch erstellten lassen und habe im Code folgendes eingetragen:

```typoscript
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template1.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/
}
 

marks.hauptmenue = HMENU
marks.hauptmenue.special = directory
marks.hauptmenue.special.value = 1
marks.hauptmenue.1 = GMENU
marks.hauptmenue.1 {
NO {
backColor = #98B3F8
XY = [10.w]+10 , 18
10 = TEXT
10.text.field = title
10.fontFile = fileadmin/template/main/verdana.ttf
10.fontColor = black
10.fontSize = 10
10.offset = 5,12
10.niceText = 0
}
}




# 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 some example content:
  subparts.menu_1 = TEXT
  subparts.menu_1.value = HELLO WORLD - MENU


    # Substitute the ###content### subpart with some example content:
  subparts.content < styles.content.get
  

    # Substitute the ###werbeueberschrift### subpart with some example content:
  subparts.werbeueberschrift < styles.content.getBorder
  

    # Substitute the ###hauptmenue### subpart with some example content:
  subparts.hauptmenue < menu_OBEN


    # Substitute the ###menuueberschrift### subpart with some example content:
  subparts.menuueberschrift= TEXT
  subparts.menuueberschrift.value = HELLO WORLD - menuueberschrift

    # Substitute the ###hauptueberschrift### subpart with some example content:
  subparts.hauptueberschrift < styles.content.getRight

    # Substitute the ###neuenews### subpart with some example content:
  subparts.neuenews < styles.content.getLeft

}



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

Da ich noch absoluter Anfänger bin bitte ich um nachsicht ;)

Was habe ich falsch gemacht.... ??

Wo muss ich eigentlich in diesem SETUP die weiteren CODES einfügen ?? Vor dem Main Template cCObjekt ???

Gruss

db

## Antworten

### [#2](https://www.typo3.net/d/14204-kurze-frage-zu-einem-menueproblem/2) · Dirk Büchel · 2004-08-02

Kurze Frage:

Es ist vielleicht besser alles OHNE AutoTemplate zu machen ???

Damit mann TYPO3 besser versteht !??!?

gruss

db

---

Quelle: „Kurze Frage zu einem Menueproblem“, typo3.net, https://www.typo3.net/d/14204-kurze-frage-zu-einem-menueproblem
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
