[Typo3] GMENU_LAYERS: leftOffset and topOffset

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.com
Wed Apr 27 16:29:21 CEST 2005


Hello!

I have a problem with GMENU_LAYER (see snippet below):

'leftOffset = [value]' only has effect if 'lockPosition' is set to 'y' 
and 'topOffset = [value]' only has effect if 'lockPosition' is set to 'x'.

...and  would like both to be effective. Where do I go wrong? Any ideas?

Please see:
http://www.belicht.org/demo/Plastics.313.0.html
... where the menu says "Static bonding", etc. The problem is between 
the second and third level of this menu.

Any ideas?

Thanks in advance!

-brt


#################
# submenu 2 second level
#################

temp.Top2.2 = GMENU_LAYERS
temp.Top2.2 {
   lockPosition = x
   relativeToParentLayer = 1
   leftOffset = 40 ## ONLY HAS EFFECT IF lockPosition = y
   topOffset = 16  ## ONLY HAS EFFECT IF lockPosition = x
   expAll=1
   displayActiveOnLoad = 0
   freezeMouseover = 1
   hideMenuWhenNotOver = 2
   hideMenuTimer = 1200
   dontHideOnMouseUp = 1
}
temp.Top2.2.expAll = 1
temp.Top2.2.wrap = <table width="120" height="120%" border="0" 
cellpadding="0" cellspacing="0" 
background="fileadmin/simco/img/menu_sub_bg.gif">|</table>
temp.Top2.2.NO {
   wrap (
           <tr>
             <td height="20" align="left" valign="top">
             |
             </td>
           </tr>
   )
   XY = 120,20
   9 = IMAGE
   9.file = top2_sub_no.gif
   9.file.width = 120
   9.file.height = 20
   10 = TEXT
   10.text.field = title
   10.fontFile = t3lib/fonts/verdana.ttf
   10.fontSize = 11
   10.fontColor = #000000
   10.align = left
   10.offset = 15,14
   10.niceText = 1
}
temp.Top2.2.ACT < temp.Top2.2.NO
temp.Top2.2.ACT = 1
temp.Top2.2.ACT {
   10.fontColor = #0552B2
   9 = IMAGE
   9.file = top2_sub_act.gif
}
temp.Top2.2.RO < temp.Top2.2.ACT

temp.Top2.3 = GMENU
temp.Top2.3.expAll = 1
temp.Top2.3.wrap = <table width="120" height="120%" border="0" 
cellpadding="0" cellspacing="0" 
background="fileadmin/simco/img/menu_sub_bg.gif">|</table>
temp.Top2.3.NO {
   wrap (
           <tr>
             <td height="20" align="left" valign="top">
             |
             </td>
           </tr>
   )
   XY = 120,20
   9 = IMAGE
   9.file = top2_sub2_no.gif
   9.file.width = 120
   9.file.height = 20
   10 = TEXT
   10.text.field = title
   10.fontFile = t3lib/fonts/verdana.ttf
   10.fontSize = 11
   10.fontColor = #000000
   10.align = left
   10.offset = 15,14
   10.niceText = 1
}
temp.Top2.3.ACT < temp.Top2.3.NO
temp.Top2.3.ACT = 1
temp.Top2.3.ACT {
   10.fontColor = #0552B2
   9 = IMAGE
   9.file = top2_sub2_act.gif
}
temp.Top2.3.RO < temp.Top2.3.ACT


-- 
Bert Hiddink
hiddink at bendoo.nl
BENDOO e-work solutions
http://www.bendoo.nl
Harterinkdijk 8, 7065 AR SINDEREN
The Netherlands
Tel. 0315 244525



More information about the TYPO3-english mailing list