[TYPO3-english] menu not disappearing with Templavoila(?)
La Farge Douglas
doug at gcnpublishing.com
Tue Dec 22 22:09:09 CET 2009
Hi,
For over two years I've been using the code below to generate drop down navigation menus. I have a dozen or more sites using this code. It does the job nicely.
Recently I've switched to TV (and I'm very pleased I finally made the switch).
However in doing so an odd behavior is now happening with the drop down menu's. They do not disappear (retract) unless I hover over another menu.
Can anyone see why my menus won't retract?
IT seems like this code:
hideMenuWhenNotOver = 1
hideMenuTimer = 3
is no longer valid?
I have three sites running TV and they all act the same. I can't see how it would be any other extension causing this (all my sites generally use the same extensions).
thanks in advance,
doug
includeLibs.gmenu_layers = media/scripts/gmenu_layers.php
includeLibs.tmenu_layers = media/scripts/tmenu_layers.php
temp.nav = HMENU
#temp.nav.entryLevel = 0
temp.nav.special = list
temp.nav.includeNotInMenu=0
temp.nav.special.value = {$menu_ids}
temp.nav.1 = GMENU_LAYERS
temp.nav.1 {
layer_menu_id = topnav1
imgNameNotRandom = 1
imgNamePrefix = nav1
#added width: here for compatibilty. If width: is removed, menus display properly for Firefox
#but don't work right with IE.
layerStyle = position:absolute; left:0px; width:180x; display:block; VISIBILITY:hidden;
expAll = 1
lockPosition = x
topOffset = {$topOffset}
hideMenuWhenNotOver = 1
hideMenuTimer = 3
distributeX = 944 #subtracted 8 px for border; also change in _layout.css: #menu width
relativeToTriggerItem = 1
NO {
XY = [10.w] -1, 24
10.transparentBackgound = 1
#####10.niceText = 1
backColor = #{$menu_color}
10 = TEXT
10.text.field = title
#10.text.case = upper
10.offset = 0,16
10.align = center
10.fontColor = #000000
10.fontSize = 12
10.fontFile = fileadmin/fonts/VERDANAB.TTF
allWrap = <td style="border-right: 1px solid #ffffff">|</td> |*| <td style="border-right: 1px solid #ffffff">|</td> |*| <td>|</td>
}
RO < .NO
RO = 0
RO {
backColor = #ffffff
10 = TEXT
10.fontColor = #ffffff
}
ACT < .RO
ACT = 0
}
[browser = msie]
temp.nav.1.topOffset = {$topOffsetIE}
[end]
temp.nav.2 = TMENU
temp.nav.2 {
wrap = <table width="170" style="border: 1px solid #ffffff;" cellpadding="4" cellspacing="0">|</table>
expAll = 1
hideMenuWhenNotOver = 10
hideMenuTimer = 10
NO {
linkWrap = <tr><td id="secmenu{elementUid}" class="secondtiernav" align="left" style="border-bottom: 1px solid #ffffff; background-color: #{$color};">|</td></tr> |*| <tr><td id="secmenu{elementUid}" class="secondtiernav" align="left" style="border-bottom: 1px solid #ffffff; background-color: #{$color};">|</td></tr> |*| <tr><td id="secmenu{elementUid}" class="secondtiernav" align="left" style="background-color: #{$color};">|</td></tr>
subst_elementUid = 1
RO_chBgColor = #{$roll_color} | #{$color} | secmenu
RO = 1
}
}
More information about the TYPO3-english
mailing list