[TYPO3-dev] Did I just fix or break TMENU_LAYERS?

Bas v.d. Wiel bas at extranet.kompas-media.nl
Wed Apr 12 20:21:14 CEST 2006


Hi list,
After a couple of hours of tearing my hair out over TMENU LAYERS' 
disobedience, I finally resolved to hacking 
media/scripts/tmenu_layers.php itself to look for a fix.

The problem:
I need a horizontal dropdown TMENU with just a single layer dropping 
down. Doing things semantically correctly I composed the whole thing 
using unordered lists like this (still under construction):

  1 = TMENU_LAYERS
  1 {
        wrap = <ul>|</ul>
        expAll = 1
        relativeToTriggerItem = 1
        hideMenuWhenNotOver = 4
        hideMenuTimer = 4000
        leftOffset = 35
        NO.allWrap = <li>|</li>
        ACT.allWrap = <li>|</li>
  }

  2 = TMENU
  2 {
        wrap = <ul class="layer">|</ul>
        NO.allWrap = <li>|</li>
        ACT.allWrap = <li>|</li>
        ACT = 1
  }

The option 'relativeToTriggerItem' introduces some DIV's to the code. 
They created utter havoc in IE on Windows but were acceptable in 
Firefox. I spent hours trying to make IE play nice with my menu using 
CSS but to no avail. Finally I changed the DIV with the 
id='itemIDxxxx..' into SPAN's inside the php script and it all works 
perfectly for me now.

However I'm wondering.. things like this can't be this easy. I must have 
broken something else now, right? By the way this is using TYPO3 3.8.1.

Kind regards,

Bas




More information about the TYPO3-dev mailing list