Zum Inhalt springen

einfaches Menu erstellen

Erstellt am 14. Juni 2005 · 6 Antworten · letzte Antwort am 21. Juni 2005

Tags: Frage

Lotus ·

Hallo,
ich bekomm's einfach nicht gebacken ein einfaches Menu zu erstellen.
Bitte helft mir!!!

Mein Template:
<!-- ###DOCUMENT_BODY###START-->
<table align="center" height="100%" width="730" border="0" cellpadding="0" cellspacing="0">
<tr height="13%">
<td width="150" style="background-image:url(fileadmin/template/images/bg_blau_hell_links.png)">
<p>
<!-- Ihr Logo; max. Breite: 150, Hoehe: 110-->
<img src="fileadmin/template/images/p4web_logo4.png" width="148" border="0" alt="p4web G&ouml;&szlig;weinstein" />
</p>
</td>
<td width="15"> </td>
<td width="565" style="background-image:url(fileadmin/template/images/bg_arena3.gif)">###BANNER###</td>
</tr>
<tr><td colspan="3" height="6"> </td></tr>
<tr height="*">
<td width="150" style="background-image:url(fileadmin/template/images/bg_blau_hell_links.png)">

<!-- ###menu### START --> <!-- ###menu### STOP -->
</td>
<td width="15"> </td>
<td width="565" style="background-image:url(fileadmin/template/images/bg_arena.gif)">
<table align="left" valign="top" border="0" cellpadding="5" cellspacing="0" height="100%">
<tr>
<td>
<!-- ###CONTENT### START --> <!-- ###CONTENT### STOP -->
</td>
</tr>
</table>
</td>
</tr>
<tr><td colspan="3" height="6"> </td></tr>
<tr height="5%">
<td width="150" style="background-image:url(fileadmin/template/images/bg_blau_hell_links.png)"> </td>
<td width="15"> </td>
<td width="565" align="center" style="background-image:url(fileadmin/template/images/bg_arena3.gif)">###FUSS###</td>
</tr>
</table>
<!-- ###DOCUMENT_BODY### STOP-->

Mein Typoscript:
seite = PAGE
site.typeNum = 1
seite.bodyTag = <body bgcolor="#000000">
seite.stylesheet = fileadmin/template/stylesheet.css
seite.10 = TEMPLATE
seite{
10.template = FILE
10.template.file = fileadmin/template/index.html
10.workOnSubpart = DOCUMENT_BODY
10.marks.BANNER = TEXT
10.marks.BANNER.value = Banner!
10.subparts.CONTENT < styles.content.get
10.marks.FUSS = TEXT
10.marks.FUSS.value = FUSS!
}

Moeffz ·

Du sprichst ja auch weder den Marker an noch steht da irgendein TS zu Deinem Menü.

Es gibt hier im Forum - dank der Suche leicht auffindbar - etliche Scripte für komplette Menüs. Es gibt auch eine Schritt-für-Schritt-Anleitung von Robert Meyer unter dem Menüpunkt "Literatur zu TYPO3". Darüber hinaus gibt es hier sogar von der deutsche Version der TSref den Teil, in dem Menüs behandelt werden.

Schau doch erstmal zu, was Du genau haben willst und wie weit Du kommst.

Lotus ·

Danke für deine Antwort.
Hab' folgendes probiert:

Marker im Layout=
<!-- ###MENU_LINKS### START --> <!-- ###MENU_LINKS### STOP -->

seite = PAGE
site.typeNum = 1
seite.bodyTag = <body bgcolor="#000000">
seite.stylesheet = fileadmin/template/stylesheet.css

seite.10 = TEMPLATE
seite{
10.template = FILE
10.template.file = fileadmin/template/index.html
10.workOnSubpart = DOCUMENT_BODY
10.marks.BANNER = TEXT
10.marks.BANNER.value = Banner!
10.subparts.CONTENT < styles.content.get
10.marks.FUSS = TEXT
10.marks.FUSS.value = FUSS!

MENU_LINKS = HMENU
MENU_LINKS {
special = directory
special.value = 1
1 = GMENU
1.NO = 1
1.NO {
xy = 178, 24
backColor = #364497
10 = TEXT
}
}

Es wird mir nichts angezeigt.

just2b ·

Hallo,

naja ist auch kein Wunder, du musst schon noch sagen, dass das Menü einem Marker zugeteilt werden muss....

also

10.marks.MENU_LINKS = HMENU
.......

wichtig: bitte Dokus lesen, insbesonders als Anfänger und dazu die Beispiele machen!!!
und hier im Forum gibts noch den Button "TS" beim Schreiben von Beiträgen => bitte für TS-Code auch benutzen

georg

Lotus ·

Hallo just2b,

hab's so probiert:

.....
10.marks.FUSS = TEXT
10.marks.FUSS.value = FUSS!


10.marks.MENU_LINKS = HMENU
MENU_LINKS {
special = directory
special.value = 1
1 = GMENU
1.NO = 1
1.NO {
xy = 178, 24
backColor = #364497
10 = TEXT
}
}

funktioniert auch nicht wenn ich 10.marks. in die Zeilen 6 - 14. setze.
Ich bin einer Doku Schritt für Schritt gefolgt. Habe mit dem Erstellen
des Templates keine Probleme gehabt. Nur das Menu bekomm' ich nicht hin.

Gruß,
Lotus

McGregor ·
Lotus schrieb

Ich bin einer Doku Schritt für Schritt gefolgt. Habe mit dem Erstellen
des Templates keine Probleme gehabt.

Das bezweifel ich sehr...

Trotzdem:
Es muss heißen:

10.marks.MENU_LINKS = HMENU
10.marks.MENU_LINKS {
...
}

Dann muss die Dimension (XY) des GIFBUILDER in GROSSBUCHSTABEN angegeben werden. Die Syntax von TS ist case-sensitiv!

Dann würde ich dir empfehlen für den Anfang erst mal ein TMENU zu generieren, damit du siehst, ob es überhaupt funktioniert.

Und zu guterletzt arbeitest du in deinem Template nicht mit Markern, sondern mit Subparts (im Fall des MENU_LINKS)

Grüße
McGregor