[TYPO3] SD: Holding horizontal positioning with TMENU_LAYERS and TMENU

Michael Cannon michael at cannonbose.com
Thu Jan 26 06:11:50 CET 2006


Ref: http://sd.cannonbose.com/no-cache/

How do I make the second level menus to show up directly under the  
first level entries? Basically, I don't want the second level  
navigation to float around depending upon where the mouse is on the  
first level items. The second level should show up flush left of of  
the first level entry.

TypoScript Setup
-----
lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu.wrap = <table width="780" border="0" align="center"  
cellpadding="3" cellspacing="0"><tr align="center">|</tr></table>

lib.mainMenu.1 = TMENU_LAYERS
lib.mainMenu.1 {
	expAll = 1
	lockPosition =
	dontFollowMouse = 1
	xPosOffset = +35
	topOffset = +131
	freezeMouseover = 1
	hideMenuWhenNotOver = 10
	hideMenuTimer = 750
	dontHideOnMouseUp = 1
}

lib.mainMenu.1 {
	noBlur = 1
	NO {
		linkWrap = <td>|</td>
		ATagParams = class="linkboldsmaller"
	}
}

lib.mainMenu.2 = TMENU
lib.mainMenu.2 {
	wrap = <ul style="background: #eee; padding: 0 1.5em; margin: 0;">|</ 
ul>
	noBlur = 1
	NO.linkWrap = <li style="list-style: square url(fileadmin/templates/ 
images/bullet.gif);">|</li>
}
-----

Thanks for any suggestions.

Michael

-----
Michael Cannon
President of Cannonbose, LLC
Tel    : +1 (206) 351-0159         Fax : +1 (802) 609-2776






More information about the TYPO3-english mailing list