Zum Inhalt springen

GMENU (mit Unterseiten) wrapen in zwei Spalten

Erstellt am 13. Dezember 2004 · 2 Antworten · letzte Antwort am 14. Dezember 2004

Tags: Frage

greenbanana ·

Hallo ich möchte mein GMENU in zwei Spalten Ausgeben. Das heisst, dass das Menu in eine Tabelle geschrieben und ge wrapt wird. Leider stimmt bei mir aber leider was nicht. Ich erreiche lediglich eine Zweispaltigkeit bei den Haubtmenus.

Die Untermenus werden dann wild auf meiner Seite verteilt...

...was mache ich falsch?

So weit bin ich bis jetzt:
http://greenbanana.deluxetargets.ch/index.php?id=37 ...mal auf Zürich klicken!

Mein Code ist folgender:

seite.10.marks {
                       MENU_HOTEL = HMENU
                       MENU_HOTEL.entryLevel = 4
                       MENU_HOTEL.1 = GMENU
                       MENU_HOTEL.1 {
wrap = <table border="0" cellspacing="3" cellpadding="0" width="200"> | </table>
NO.allWrap = |*|<tr><td CLASS="" width="100"> | </td>||<td CLASS="" width="250"> | </td> </tr>|*|
ACT = 1
ACT.allWrap = |*|<tr><td CLASS="" width="100"> | </td>||<td CLASS="" width="250"> | </td></tr>|*|
                                             }
                       MENU_HOTEL.1.NO = 1
                       MENU_HOTEL.1.NO {
                                                         wrap = |<br>
                                                         XY = 90, 20
                                                         backColor = #FFFFFF
                                                         10 = TEXT
                                                         10.text.field = title
                                                         10.fontColor = #5D93AE
                                                         10.fontFile = fileadmin/fonts/menu.ttf
                                                         10.fontSize = 12
                                                         10.niceText = 1
                                                         10.offset = 7, 15
                                                          
                                                         20 = IMAGE
                                                          }
                              MENU_HOTEL.1.RO < .MENU_HOTEL.1.NO
                              MENU_HOTEL.1.RO {
                                                         tmp < .backColor
                                                         backColor = #DDDDDD
                                                         5 < .10
                                                         5.fontColor < .tmp
                                                         5.offset = 9, 19
                                                         ACT = 1 
                                                         }
                              MENU_HOTEL.1.CUR < .MENU_HOTEL.1.RO
                              MENU_HOTEL.2 < .MENU_HOTEL.1
                              MENU_HOTEL.2 {
                                                    NO.backColor = #E2F5E5
                                                    NO.10.fontColor = #CCCCCC
                                                    NO.20.file.backColor = #478951
                                                    RO < .NO
                                                    RO.backColor = #FFFFFF
                                                    RO.5 >
                                                    CUR < .RO
                                                    }

                       }

Zudem möchte ich eigentlich, dass meine Unterseiten immer angezeigt werden.

Herzlichen Dank für Eure Hilfe.

GreenBanana

newton ·

Der generierte HTML-code des Menüs passt nicht:

<table border="1" cellpadding="0" cellspacing="3" width="200">
<tbody><tr><td class="" width="100"><a href="index.php?id=82" onfocus="blurLink(this);" onmouseover="over('img82_17e6_0');" onmouseout="out('img82_17e6_0');"><img src="http://greenbanana.deluxetargets.ch/typo3temp/menu/3d89adec38.png" alt="Lugano" name="img82_17e6_0" border="0" height="20" width="90"></a><br></td><td class="" width="250"><a href="index.php?id=81" onfocus="blurLink(this);" onmouseover="over('img81_17e6_1');" onmouseout="out('img81_17e6_1');"><img src="typo3temp/menu/dc1d12bbec.png" alt="Basel" name="img81_17e6_1" border="0" height="20" width="90"></a><br></td> </tr><tr><td class="" width="100"><a href="index.php?id=48" onfocus="blurLink(this);" onmouseover="over('img48_17e6_2');" onmouseout="out('img48_17e6_2');"><img src="http://greenbanana.deluxetargets.ch/typo3temp/menu/6d8cc1a9d5.png" alt="Zürich" name="img48_17e6_2" border="0" height="20" width="90"></a><br></td></tr></tbody></table>

<table border="1" cellpadding="0" cellspacing="3" width="200"><tbody><tr><td class="" width="100"><a href="index.php?id=84" onfocus="blurLink(this);" onmouseover="over('img84_eb5d_0');" onmouseout="out('img84_eb5d_0');"><img src="http://greenbanana.deluxetargets.ch/typo3temp/menu/54b4dc9c53.png" alt="Hotel 1" name="img84_eb5d_0" border="0" height="20" width="90"></a><br></td><td class="" width="250"><a href="index.php?id=83" onfocus="blurLink(this);" onmouseover="over('img83_eb5d_1');" onmouseout="out('img83_eb5d_1');"><img src="http://greenbanana.deluxetargets.ch/typo3temp/menu/eeb03e024d.png" alt="Hotel 2" name="img83_eb5d_1" border="0" height="20" width="90"></a><br></td> </tr></tbody></table>

</font></td><td class="" width="250"><a href="index.php?id=47" onfocus="blurLink(this);" onmouseover="over('img47_17e6_3');" onmouseout="out('img47_17e6_3');"><img src="typo3temp/menu/6502eda612.png" alt="Genf" name="img47_17e6_3" border="0" height="20" width="90"></a><br></td> </tr><tr><td class="" width="100"><a href="index.php?id=46" onfocus="blurLink(this);" onmouseover="over('img46_17e6_4');" onmouseout="out('img46_17e6_4');"><img src="http://greenbanana.deluxetargets.ch/typo3temp/menu/c99c584695.png" alt="St.Moritz" name="img46_17e6_4" border="0" height="20" width="90"></a><br></td></tr></tbody>

Zwei Tabellen und zwei Menüpunkte die aus den Tabellen ausgeschlossen sind.

ich würde das table tag herausnehmen (zB):

MENU_HOTEL = COA
MENU_HOTEL {
  10 = TEXT
  10.value = <table...

  20 = HMENU

  30 = TEXT
  30.value = </table>
}

Du musst wahrscheinlich noch ein|zwei Sachen umstellen, kann aber im Moment -zeitlich- nicht weiter drauf eingehen.