[TYPO3] TMENU_LAYER relativeToTriggerItem
Peter Klein
peter at umloud.dk
Fri Apr 13 09:29:06 CEST 2007
Hi Bas.
Don't use those bloated *MENU_LAYERS to make dropdownmenus. Instead create a
"suckerfish" menu, which is much cleaner code.
You can find several examples on the net, like here:
http://snippets.dzone.com/posts/show/2150
--
Peter Klein/Umloud Untd
"Bas van der Togt" <b.vandertogt at profinit.com> skrev i en meddelelse
news:mailman.1.1176393240.20861.typo3-english at lists.netfielders.de...
> Hello list,
>
> I build a TMENU_LAYER menu but the submenu is aligning at the left.
> I want to show the submenu under the related item.
> This is possible with "relativeToTriggerItem" right? But unfortunately
> it's not working. Can somebody help me..?
>
> Example: http://87.249.105.43/~sust01/index.php?id=11
>
> cheers,
> Bas
>
> Setup:
> # Menu
> temp.Menu = HMENU
> temp.Menu.special = list
> temp.Menu.special.value = 11,10,9,8,7,6,5
> temp.Menu.1 = TMENU_LAYERS
> temp.Menu.1 {
> #xPosOffset = 100
> #lockPosition = x
> #lockPosition_adjust = 1
> expAll = 1
> #leftOffset = 0
> topOffset = 100
> relativeToTriggerItem = 1
> hideMenuWhenNotOver = 1
> hideMenuTimer = 750
> displayActiveOnLoad = 0
> freezeMouseover = 1
> }
> temp.Menu.1.NO {
> allWrap = <div class="button-b{elementUid}">|</div>
> subst_elementUid = 1
> ATagParams = class="button-text-no"
> }
> temp.Menu.1.ACT = 1
> temp.Menu.1.ACT {
> allWrap = <div class="button-b{elementUid}">|</div>
> subst_elementUid = 1
> ATagParams = class="button-text-act"
> }
>
> # Submenu
> temp.Menu.2 = TMENU_LAYERS
> temp.Menu.2.wrap = <div id="submenu">|</div>
> temp.Menu.2.expAll = 1
> temp.Menu.2.NO {
> allWrap = <div class="submenu">|</div>
> ATagParams = class="submenu-text-no"
> }
> temp.Menu.2.ACT = 1
> temp.Menu.2.ACT {
> allWrap = <div class="submenu">|</div>
> ATagParams = class="submenu-text-act"
> }
>
> HTML:
> <div id="menu">
> <div class="logo"><img src="fileadmin/templates/images/logo.jpg"
> height="100" width="228" alt="ATMOSPHERE" /></div>
> ###MENU###
> </div>
More information about the TYPO3-english
mailing list