Zum Inhalt springen

Menü in Form von sich überschneidenden Tabs

Erstellt am 21. Juli 2007 · 2 Antworten · letzte Antwort am 24. Juli 2007

Tags: Frage

startupboy ·

Hallo zusammen,
ich entwickle gerade ein Menü welches aus mehreren Tabs besteht.

Mein Test Typo-Script schaut bisher so aus:

 temp.MENUE = HMENU
 temp.MENUE.1 = TMENU
 temp.MENUE.1 {
   expAll = 1
   wrap =  <table class="mainWidth " border="0" cellspacing="0" cellpadding="0" style="height: 22px;"><tr>|</tr></table>

   NO {
     beforeWrap = <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_first_before.jpg" alt="" /></td><td class="tab_first">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_before.jpg" alt="" /></td><td class="tab_second">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_before.jpg" alt="" /></td><td class="tab_third">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_before.jpg" alt="" /></td><td class="tab_fourth">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_before.jpg" alt="" /></td><td class="tab_fifth">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_before.jpg" alt="" /></td><td class="tab_sixth">|
     linkWrap = |
     doNotShowLink = 1
     before.cObject = TEXT
     before.cObject.field = uid
     before.cObject.dataWrap = <a href="{field:title}.|.0.html">
     after.cObject = TEXT
     after.cObject.field

     after.cObject.htmlSpecialChars = 1
     after.cObject.wrap =             </a>
     wrapItemAndSub = |</td><td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_after.jpg" alt="" /></td> || |</td><td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_after.jpg" alt="" /></td> || |</td><td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_after.jpg" alt="" /></td> || |</td><td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_after.jpg" alt="" /></td> || |</td><td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_after.jpg" alt="" /></td> || |</td><td style="width: 22px; height:22px;"><img src="./uploads/tf/tab_sixth_after.jpg" alt="" /></td>
   }
  
   ACT > .NO
   ACT = 1
   ACT {
     beforeWrap = <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_activ_before.gif" alt="" /></td><td class="tab_first_activ">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_activ_before.gif" alt="" /></td><td class="tab_second_activ">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_activ_before.gif" alt="" /></td><td class="tab_third_activ">| ||<td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_activ_before.gif" alt="" /></td><td class="tab_fourth_activ">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_activ_before.gif" alt="" /></td><td class="tab_fifth_activ">| || <td style="width: 11px; height:22px;"><img src="./uploads/tf/tab_activ_before.gif" alt="" /></td><td class="tab_sixth_activ">|
     before.cObject.dataWrap = <a href="{field:title}.|.0.html">
          after.cObject = TEXT
     after.cObject.field

     after.cObject.htmlSpecialChars = 1
     after.cObject.wrap =             </a>
     wrapItemAndSub = |</td><td style="width: 22px; height:22px;"><img src="./uploads/tf/tab_first_activ_after.jpg" alt="" /></td> || |</td><td style="width: 22px; height:22px;"><img src="./uploads/tf/tab_first_activ_after.jpg" alt="" /></td> || |</td><td style="width: 22px; height:22px;"><img src="./uploads/tf/tab_first_activ_after.jpg" alt="" /></td> || |</td><td style="width: 22px; height:22px;"><img src="./uploads/tf/tab_first_activ_after.jpg" alt="" /></td> || |</td><td style="width: 22px; height:22px;"><img src="./uploads/tf/tab_first_activ_after.jpg" alt="" /></td> || |</td><td style="width: 22px; height:22px;"><img src="./uploads/tf/tab_sixth_after_activ.jpg" alt="" /></td>
   }

 }

Das Ganze funktioniert auch wunderbar, bis auf einen kleinen Schönheitsfehler. Da sich die Tabs überschneiden, habe ich beim nachfolgenden Menüpunkt immer eine Grafik zuviel!?

Das Menü mit dem Sichtbaren Problem:

Bild: startupboy.de/menu.JPG

Aufbau des Menüs:

Bild: startupboy.de/menuborder.JPG

Meine frage nun, kann ich via Typo-Script irgendwie eine Sonderbehandlung für den nachfolgenden Menüpunkt festlegen?

Freue mich über jeden Tipp der mich meinem Ziel näher bringt!

Unbekannter Benutzer ·

Also klassischerweise löse ich das, indem ich per CSS die Menüpunkte so verschiebe, dass die Doppelung nicht mehr sichtbar ist. Allerdings ist das mit einer Tabelle wohl etwas schwierig. Google mal nach tab css menu

Da wirst du schon fündig und kannst nach den Beispielen gehen...

Viele Grüße
Christian

brokemeister ·

Ich würde ganze auch ohne Tabelle machen...

Auf eine Liste entsprechend Formatieren (inline-Elemente)

Dann kann man die auch wunderbar verschieben...