---
title: "Menü"
url: "https://www.typo3.net/d/43413-menue"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2006-05-20"
last_reply: "2006-05-27"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Menü

Allgemein · 3 Antworten · gestartet 2006-05-20

## Eröffnungsbeitrag

**hagily** · 2006-05-20 · [Beitrag #1](https://www.typo3.net/d/43413-menue/1)

Hallo Leute.
Ich bin total neu hier und habe schon etwas mit typo experimentiert.
Nun habe ich folgendes Template Problem:
Ich möchte folgendes Template umsetzen: <http://www.4best.org/support/style.jpg>
Dir Buttonleiste oben ist statisch, der Text mit "dies ist eine Demo" soll der Inhalt der Backendseite "NEWS1", und das orange Textfeld mit dem Inhalt "news, text......text" soll der Inhalt der seite "News2" haben.
Das Textfeld im Grauen Ramen hat natürlich den Inhalt der jeweiligen seite.
Die Buttons auf der Linken seite sollen natürlich ein GMENU sein.
Mein Typo-script schaut wie folgt 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/

}


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

Nun zum Problem:
Ich weiß nicht wie ich die Buttonleiste oben und die Navigationsleiste an der linken Seite umsetzen kann.
Viele Grüsse
Felix

## Antworten

### [#2](https://www.typo3.net/d/43413-menue/2) · maik · 2006-05-20

Schau dir mal die Doku Modern Template Building an.
<http://typo3.org/documentation/document-library/tutorials/doc_tut_templsel_de/current/>

Das Golive Tut ist auch ein super Einstieg.
<http://typo3.org/documentation/document-library/tutorials/doc_tut_n1/current/>

### [#3](https://www.typo3.net/d/43413-menue/3) · hagily · 2006-05-20

Hallo Maik!
Das erste Tutorial kannte ich bereits. Das zweite hat mir aber sehr Weitergeholfen!
Nun habe ich nurnoch eine Frage: Wie lautet der TS-Code wenn ich ein Teil vom Template nur auf eine Seite beziehen möchte? Zum beispiel ich möchte dem Satz im Headerstehen haben, der in der Seite "Header" steht.

Felix

### [#4](https://www.typo3.net/d/43413-menue/4) · maik · 2006-05-27

Dazu legst du einfach ein kleines Zusatz-Template auf besagter Seite an.

Man kann das auch über Conditions lösen, würde ich aber nicht machen.
Einfach auf deine "Header" und das Template Modul aufrufen, und dort ein weiteres Template anlegen, in dem du die individuellen Einstellungen für diese Seite vornimmst.

---

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