---
title: "Erster Menütest -"
url: "https://www.typo3.net/d/35875-erster-menuetest"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2006-01-08"
last_reply: "2006-01-09"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Erster Menütest -

Allgemein · 2 Antworten · gestartet 2006-01-08

## Eröffnungsbeitrag

**beelzebub** · 2006-01-08 · [Beitrag #1](https://www.typo3.net/d/35875-erster-menuetest/1)

Hi,
ich versuche nun mal mein erstes Testmenü zu erstellen.Es wird leider nicht angezeigt.

```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
    DIV.all = 1
    UL.all = 1
  }

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


######Navitest

temp.navi = HMENU
temp.navi.entryLevel = 1
 temp.navi.1 = TMENU
 temp.navi.1 {
 NO.allWrap = <div id="navi"> | </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 ###navi### subpart with dynamic Menu
  subparts.navi < temp.navi.1
  ##alternativ auch mit temp.navi probiert

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


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

Die HTML Vorlage sieht so aus

```html
---Schnipp
<div id="navi"><p align="center">Startseite  </p></div>
<div id="navi"><p align="center">Kanzlei  </p></div>
<div id="navi"><p align="center">Unternehmensphilosophie  </p></div>
----schnapp
```

Wenn ich statt subparts.navi < temp.navi.1  subparts.navi =TEXT
subparts.navi.value = irgendein Text
mache wird der Text eingefügt.

Ich frage mich auch woher Typo wissen will welche Seiten der Baumstruktur ich meine . Wo es anfängt und wo auf.letzendlich möchte ich 3 Navigationen machen und die Baumliste ist ellenlang

Danke für einen hilfreichen Tritt ;)
Die Dokus sagen mir irgendwie nix mehr. Hab da wohl einige Abstraktionsprobleme.

## Antworten

### [#2](https://www.typo3.net/d/35875-erster-menuetest/2) · tizu · 2006-01-08

> #
>     # Substitute the ###navi### subpart with dynamic Menu
> #
>   subparts.navi < temp.navi.1

Ändere mal nach subparts.navi < temp.navi

Gruss

### [#3](https://www.typo3.net/d/35875-erster-menuetest/3) · beelzebub · 2006-01-09

Nee das hat auch nichts gebracht. Habe nun erstmal den ganzen Baum verworfen und mache etwas neues.Habe mir eine bessere Anleitung besorgt.

---

Quelle: „Erster Menütest -“, typo3.net, https://www.typo3.net/d/35875-erster-menuetest
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
