[TYPO3-german] GMENU 2 Titel erzeugen?

Sebastian Jurk info at top-info.org
Tue Sep 27 13:11:56 CEST 2011


Hallo,

ich habe jetzt ein grafisches Menü erstellt welches prinzipiell auch 
funktioniert. Einziges Manko ist noch dass die Menüpunkte eine andere 
Hintergrundfarbe beim Hover bekommen. Und dann ist der Menütitel nicht 
mehr zu sehen.

Jetzt dachte ich das man ja einfach zwei nahezu identische Titel 
erzeugen könnte von denen einer dann halt eine andere Farbe hat. Und je 
nachdem ob hover oder nicht wird dann eine Grafik angezeigt oder die andere.

Kann man das überhaupt machen?

Danke!

Hier mal meine momentane Menüdefinition:

temp.lvl1.gifBuilderSetup = GIFBUILDER
temp.lvl1.gifBuilderSetup {
   XY = [10.w]+2,[10.h]+8
   backColor = #ffffff
   transparentColor = #ffffff
   transparentBackground = 1
   niceText = 0
   10 = TEXT
   10 {
     text.field = title
     text.listNum = 0
     text.listNum.splitChar = |
     fontFile = fileadmin/templates/fonts/LTe50417.ttf
     fontSize = 18
     fontColor = #96bf0d
     offset = 0,20
   }
}

       TOPMENU = HMENU
       TOPMENU {
         wrap = <ul class="menu"> | </ul>
         1 = GMENU
         1 {
           begin = 1
           maxItems = 5
           noBlur = 1
           expAll = 1
           NO = 1
           NO < temp.lvl1.gifBuilderSetup
           NO.allWrap = <li class="lvl01"> | </li>
           IFSUB < .NO
           IFSUB.allWrap = <li class="lvl01"> |
           ACT < .NO
           ACT {
             allWrap = <li class="lvl01a"> | </li>
             10.fontColor = #ffffff
             backColor=#96bf0d
             transparentColor=#96bf0d
           }
           ACTIFSUB < .NO
           ACTIFSUB {
             allWrap = <li class="lvl01a"> |
             10.fontColor = #ffffff
             backColor=#96bf0d
             transparentColor=#96bf0d
           }
         }

         2 = TMENU
         2.stdWrap.dataWrap = <ul class="menu2 
menu2_{register:count_HMENU_MENUOBJ}"><li class="submenutop"></li>|<li 
class="submenubottom"></li></ul></li>
         2.stdWrap.insertData = 1
         2.expAll = 1
         2.noBlur = 1
         2.NO.linkWrap= <li class="lvl02"> | </li>
         2.ACT = 1
         2.ACT.linkWrap = <li class="lvl02a"> | </li>
       }


More information about the TYPO3-german mailing list