---
title: "Hauptmenü auf einem Menüpunkt bereits aufgeklappt"
url: "https://www.typo3.net/d/36097-hauptmenue-auf-einem-menuepunkt-bereits-aufgeklappt"
source: "typo3.net"
tags: ["TYPO3","Menüs","Frage"]
created: "2006-01-12"
last_reply: "2006-01-17"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Hauptmenü auf einem Menüpunkt bereits aufgeklappt

TYPO3 › Menüs · 2 Antworten · gestartet 2006-01-12

## Eröffnungsbeitrag

**sun4ben** · 2006-01-12 · [Beitrag #1](https://www.typo3.net/d/36097-hauptmenue-auf-einem-menuepunkt-bereits-aufgeklappt/1)

Ich würde gerne, wenn die Webseite angewählt wird, bereits ein Menüpunkt aufklappen.

Jetzt sieht das Menü grob wiefolgt aus:

Menüpunkt1
Menüpunkt2
Menüpunkt3
Menüpunkt4
Menüpunkt5

Ziel wäre es, dass der Menüpunkt2 bereits beim Erfassen der URL <http://www.test.ch> wie folgt aufgeklappt wird:
Menüpunkt1
Menüpunkt2
 Menüpunkt21
 Menüpunkt22
 Menüpunkt23
 Menüpunkt24
Menüpunkt3
Menüpunkt4
Menüpunkt5

Wo muss ich ansetzen, damit das funktioniert? Für Eure Hilfe danke ich.

Das Template sieht im Moment wie folgt aus:

###########################main menu#################################

temp.menu_header = IMAGE
temp.menu_header.wrap = <div style="width:163px;margin-left:18px;margin-top:20px;">|<div style="background-color:#435293;width:163px;height:1px;margin-top:9px;"><img src="clear.gif" width="163" height="1" alt="" border="0" /></div></div>
temp.menu_header.altText.text = Menü

temp.menu_header.file = GIFBUILDER
temp.menu_header.file {

XY = [10.w]+3,[10.h]+7

    backColor = #FFFFFF

    10 = TEXT
    10.text.wrap = |
    10.text = Menü
    10.text.case = normal
    10.fontSize = 18
    10.fontColor = #435293
    10.fontFile = fileadmin/fonts/tt0250m.ttf
    10.niceText = 1
    10.offset = 0,23
    10.align = left

}

temp.main_menu = HMENU
temp.main_menu.stdWrap.wrap  = <table border="0" cellpadding="0" cellspacing="0" width="163" style="margin-top:20px;margin-left:18px;">|</table>
temp.main_menu.entryLevel = 0

temp.main_menu.1 = TMENU
temp.main_menu.1.target = _top

temp.main_menu.1.NO {
  subst_elementUid = 1
  allWrap = <tr>|</tr><tr><td style="height:1px;width:20px;"><img src="clear.gif" width="20" height="1" border="0" alt="" /></td><td style="height:1px;width:143px;"><img src="clear.gif" width="143" height="1" border="0" alt="" /></td></tr>
  ATagBeforeWrap = 0
  linkWrap = <td style="width:143px;padding-top:2px;padding-bottom:2px;background-color:#E3E3E3;" align="left" class="menuno" id="bg_col{elementUid}">|</td>
  beforeImg = fileadmin/pics/icon_main.gif
  beforeROImg = fileadmin/pics/icon_main_a.gif
  beforeWrap = <td style="width:20px;background-color:#E3E3E3;" align="left" valign="top" class="menuno">|</td>

RO_chBgColor = #3C5D90 | #E3E3E3 | bg_col
  RO = 1

}

temp.main_menu.1.ACT < temp.main_menu.1.NO
temp.main_menu.1.ACT = 1
temp.main_menu.1.ACT {

  allWrap = <tr>|</tr><tr><td style="height:1px;"><img src="clear.gif" width="1" height="1" border="0" alt="" /></td><td style="height:1px;width:143px;"><img src="clear.gif" width="143" height="1" border="0" alt="" /></td></tr>
  ATagBeforeWrap = 0
  linkWrap = <td style="width:143px;padding-top:2px;padding-bottom:2px;background-color:#3C5D90;" align="left" class="menuact">|</td>
  beforeImg = fileadmin/pics/icon_main_a.gif
  beforeWrap = <td style="width:20px;background-color:#3C5D90;" align="left" valign="top" class="menuno">|</td>

}

temp.main_menu.2 = TMENU
temp.main_menu.2.target = _top
temp.main_menu.2.NO {

subst_elementUid = 1
  allWrap = <tr><td colspan="2" width="163"><table border="0" cellpadding="0" cellspacing="0" width="163">|<tr><td style="height:1px;width:27px;"><img src="clear.gif" width="27" height="1" border="0" alt="" /></td><td style="height:1px;width:136px;"><img src="clear.gif" width="136" height="1" border="0" alt="" /></td></tr></table></td></tr>
  ATagBeforeWrap = 0
  linkWrap = <td style="width:137px;padding-top:2px;padding-bottom:2px;padding-left:1px;background-color:#E3E3E3;" class="menuno" id="bg_col{elementUid}">|</td></tr>
  beforeImg = fileadmin/pics/icon_sub.gif
  beforeROImg = fileadmin/pics/icon_sub_a.gif
  beforeWrap = <tr><td style="width:27px;background-color:#6989B8;">|</td>

RO_chBgColor = #6989B8 | #E3E3E3 | bg_col
  RO = 1

}

temp.main_menu.2.ACT < temp.main_menu.2.NO
temp.main_menu.2.ACT = 1
temp.main_menu.2.ACT {

allWrap = <tr><td colspan="2" width="163"><table border="0" cellpadding="0" cellspacing="0" width="163">|<tr><td style="height:1px;width:27px;"><img src="clear.gif" width="27" height="1" border="0" alt="" /></td><td style="height:1px;width:136px;"><img src="clear.gif" width="136" height="1" border="0" alt="" /></td></tr></table></td></tr>
  ATagBeforeWrap = 0
  linkWrap = <td style="width:137px;padding-top:2px;padding-bottom:2px;padding-left:1px;background-color:#6989B8;" align="left" class="menuact">|</td></tr>
  beforeImg = fileadmin/pics/icon_sub_a.gif
  beforeWrap = <tr><td style="width:27px;background-color:#6989B8;" valign="top">|</td>

}

temp.main_menu.3 = TMENU
temp.main_menu.3.target = _top
temp.main_menu.3.NO {

subst_elementUid = 1
  allWrap = <tr><td colspan="2" width="163"><table border="0" cellpadding="0" cellspacing="0" width="163">|<tr><td style="height:1px;width:40px;"><img src="clear.gif" width="40" height="1" border="0" alt="" /></td><td style="height:1px;width:123px;"><img src="clear.gif" width="123" height="1" border="0" alt="" /></td></tr></table></td></tr>
  ATagBeforeWrap = 0
  beforeImg = fileadmin/pics/icon_subsub.gif
  beforeROImg = fileadmin/pics/icon_subsub_a.gif
  linkWrap = <td style="width:124px;padding-top:2px;padding-bottom:2px;padding-left:1px;background-color:#E3E3E3;" class="menuno" id="bg_col{elementUid}">|</td></tr>
  beforeWrap = <tr><td style="width:40px;background-color:#899AB6;">|</td>

RO_chBgColor = #899AB6 | #E3E3E3 | bg_col
  RO = 1

}

temp.main_menu.3.ACT < temp.main_menu.3.NO
temp.main_menu.3.ACT = 1
temp.main_menu.3.ACT {

allWrap = <tr><td colspan="2" width="163"><table border="0" cellpadding="0" cellspacing="0" width="163">|<tr><td style="height:1px;width:40px;"><img src="clear.gif" width="40" height="1" border="0" alt="" /></td><td style="height:1px;width:123px;"><img src="clear.gif" width="123" height="1" border="0" alt="" /></td></tr></table></td></tr>
  ATagBeforeWrap = 0
  beforeImg = fileadmin/pics/icon_subsub_a.gif
  linkWrap = <td style="width:124px;padding-top:2px;padding-bottom:2px;padding-left:1px;background-color:#899AB6;" align="left" class="menuact">|</td></tr>
  beforeWrap = <tr><td style="width:40px;background-color:#899AB6;" valign="top">|</td>

}

## Antworten

### [#2](https://www.typo3.net/d/36097-hauptmenue-auf-einem-menuepunkt-bereits-aufgeklappt/2) · raufer · 2006-01-17

Ein Shortcut von der Rootseite (Da wo das Template liegt) zu der Seite die geöffnet sein soll könnte dir weiterhelfen.

### [#3](https://www.typo3.net/d/36097-hauptmenue-auf-einem-menuepunkt-bereits-aufgeklappt/3) · sun4ben · 2006-01-17

Das funktioniert leider nicht. Ich will nicht auf diese Seite springen. Ich will nur das Menü teilweise geöffnet darstellen, damit es übersichtlicher wird.

Für weitere Hinweise bin ich dankbar.

---

Quelle: „Hauptmenü auf einem Menüpunkt bereits aufgeklappt“, typo3.net, https://www.typo3.net/d/36097-hauptmenue-auf-einem-menuepunkt-bereits-aufgeklappt
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
