[Typo3-dev] how to display the current second level with TMENU_LAYERS

nicolas dengler ndengler at yahoo.fr
Mon Jul 7 23:35:28 CEST 2003


hello,
I'm displaying a navigation in 2 horizontals levels with the TMENU_LAYERS
and TMENU objects. I would like to always display the active second level of
my menu and not only on mouseover. How can I set this menu to be display the
submenu of the current page directly on load ?

I'm currently doing it not in a nice way. I doubled the menu with a secon
TMENU ( the 20. here below) to have my result. how else ?

Thanks

nicolas




includeLibs.tmenu_layers = media/scripts/tmenu_layers.php

menu.top = COA
menu.top  {

10 = HMENU
10.entryLevel = 1
10.1 = TMENU_LAYERS
10.1 {
 expAll = 1
 leftOffset = -6
 topOffset = 21
 hideMenuTimer = 2000
 hideMenuWhenNotOver = 20
 dontHideOnMouseUp = 1
 dontFollowMouse = 1
 relativeToTriggerItem = 1
 relativeToParentLayer = 1
 wrap = <table height="18" border="0" cellspacing="0" cellpadding="0"
bgColor="#2C7500"><tr><td class="m1sep"><img
src="bl.gif"></td>|</tr></table>
 NO {
  allWrap = <td class="m1" id="tmenuID1{elementUid}">|</td><td
class="m1sep"><img src="bl.gif"></td>
  ATagParams = class=m1
  RO=1
  RO_chBgColor = #61983F | #2C7500 | tmenuID1
  subst_elementUid = 1
  }
 ACT < .NO
 ACT = 1
 ACT {
  allWrap = <td class="m1s">|</td><td class="m1sep"><img src="bl.gif"></td>
  ATagParams = class=m1s
 }
 SPC = 1
 SPC.allWrap = <td><img src="bl.gif" width="10">|</td><td class="m2sep"><img
src="bl.gif"></td>
 SPC.doNotShowLink = 1
}

10.2 = TMENU
10.2 {
  wrap = <table width="594" height="18" border="0" cellspacing="0"
cellpadding="0" bgColor="#99CC00"><tr><td class="m2sep"><img
src="bl.gif"></td>|<td width="80%"><img src="bl.gif"></td></tr></table>
  NO {
  allWrap = <td class="m2" id="tmenuID2{elementUid}" nowrap>|</td><td
class="m2sep"><img src="bl.gif"></td>
  ATagParams = class=m2
  RO=1
  RO_chBgColor = #61983F | #99CC00 | tmenuID2
  subst_elementUid = 1
  }
 ACT < .NO
 ACT = 1
 ACT {
  allWrap = <td class="m2s">|</td><td class="m2sep"><img src="bl.gif"></td>
  ATagParams = class=m2s
 }
 SPC = 1
 SPC.allWrap = <td><img src="bl.gif" width="10">|</td><td class="m2sep"><img
src="bl.gif"></td>
 SPC.doNotShowLink = 1
}


20 = HMENU
20.entryLevel = 2
20.1 < .10.2
20.1.wrap = <img src="bl.gif" height="5"><br><table height="18" border="0"
cellspacing="0" cellpadding="0" bgColor="#99CC00"><tr><td class="m2sep"><img
src="bl.gif"></td>|</tr></table>
20.1.NO.allWrap = <td class="m2" id="tmenuID3{elementUid}">|</td><td
class="m2sep"><img src="bl.gif"></td>
20.1.NO.RO_chBgColor = #61983F | #99CC00 | tmenuID3
}






More information about the TYPO3-dev mailing list