Zum Inhalt springen

Weitere Ebene im Menü

Erstellt am 29. August 2005 · 2 Antworten · letzte Antwort am 29. August 2005

Tags: Frage

McPringle ·

Hallo,

ich bin relativ neuer Typo3-User und bin mit dem QuickStart-Package gestartet, welche ich an meine Bedürfnisse angepasst habe.

Doch nun habe ich ein Problem: Ich möchte das Menü so konfigurieren, dass eine weitere Ebene angezeigt wird. Aktuell sieht es so aus:

Rubrik
> Seite 1
> Seite 2
> Seite 3

Ich möchte nun eine weitere Eben im Menü sehen:

Rubrik
> Seite 1
> Seite 2
  > Seite 2.1
  > Seite 2.2
> Seite 3

Wie geht das?

Danke
McPringle

cyberratz ·

Das ins Template:

# Content Menu cObject

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

temp.content_menu.1 {

# Normal state properties
NO.allWrap = <div class="content_menu-level1-no"> | </div>

# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="content_menu-level1-act"> | </div>

}

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

temp.content_menu.2 {

# Normal state properties
NO.allWrap = <div class="content_menu-level2-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="content_menu-level2-act"> | </div>
}

Dann natürlich das ganze noch einbinden mit:

# Substitute the ###content_menu### subpart with some example content:
subparts.content_menu < temp.content_menu

Und hier noch ein CSS:

/* Menu 1 column */
TD#content_menu {
        vertical-align: top;
        width: 140px;
        padding-top: 10px;
        background-color: #CCCCCC;

}
TD#content_menu DIV {
        width: 95%;
}
TD#content_menu DIV A {
        color: #000000;
        text-decoration: none;
}
TD#content_menu DIV A:hover {
        text-decoration: underline;
}

/*  MENU 1, level 1, normal state (NO) */
TD#content_menu DIV.content_menu-level1-no {
  border-bottom: 1px dotted #999999;
  font-size: 12px;
  padding-top:5px;
  padding-left:5px;
 padding-right:5px;
}
/*  MENU 1, level 1, active state (ACT) */
TD#content_menu DIV.content_menu-level1-act {
  border-bottom: 1px solid #999999;
  font-weight:bold;
  font-size: 12px;
  padding-top:5px;
  padding-left:5px;

  background-color: #eeeeee;
  filter:alpha(opacity='70', style='0');
}
TD#content_menu DIV.content_menu-level1-act A {
  color:black;
}

/*  MENU 1, level 2, normal state (NO) */
TD#content_menu DIV.content_menu-level2-no {
  font-size: 11px;
  padding-left:10px;
}
/*  MENU 1, level 2, active state (ACT) */
TD#content_menu DIV.content_menu-level2-act {
  font-size: 11px;
  font-weight:bold;
  padding-left:10px;
}

/*  MENU 2, level 1, general for all table cells: */
TR#menu_2 TD {
  background-color: #333366;
  width: 10%;
  text-align: center;
  padding: 0px 2px 0px 2px;
}
TR#menu_2 TD A {
  color: white;
  font-size: 10px;
  font-family: verdana, arial;
  text-decoration: none;
}
TR#menu_2 TD A:hover {
  text-decoration: underline;
}
TR#menu_2 TD.oddcell {
  background-color: #666699;
}
TR#menu_2 TD.menu2-level1-act {
  background-color: #88292A;
}

Gruss,

Ekki