---
title: "kleines Menüproblem"
url: "https://www.typo3.net/d/8550-kleines-menueproblem"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2004-01-27"
last_reply: "2004-01-27"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# kleines Menüproblem

TYPO3 › Menüs · 0 Antworten · gestartet 2004-01-27

## Eröffnungsbeitrag

**tombee** · 2004-01-27 · [Beitrag #1](https://www.typo3.net/d/8550-kleines-menueproblem/1)

Hallo,
hier nochmal ein Newbee.
Versuche ein Menü einzubauen nach dem Modern Template Building Tutorial 1.
Um die Menüpunkte wird hier immer eine <DIV class> gelegt. Meine Menüpunkte werden einfach automatisch per display:block erzeugt. Ich benötige also den wrap nicht.
Mein Template Code sieht so aus:
-------------
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
  content = FILE
  content.file = fileadmin/template/template_artikel.htm

    # 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/
}

# navilinks cObject
temp.navilinks = HMENU
  # First level menu-object, textual
temp.navilinks.1 = TMENU

# Second level menu-object, textual
temp.navilinks.2 = TMENU

# 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 ###navilinks### subpart with some example content:
  subparts.navilinks < temp.navilinks

    # Substitute the ###newscontent### subpart with some example content:
  subparts.newscontent = TEXT
  subparts.newscontent.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
--------------
Danach steht zwischen <div id="navilinks"></div> allerdings überhaupt nichts.

Kann mir jemand helfen?

Viele Grüße
Tombee

---

Quelle: „kleines Menüproblem“, typo3.net, https://www.typo3.net/d/8550-kleines-menueproblem
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
