[TYPO3] Rollover page descriptions for menus

Christopher Torgalson bedlamhotel at gmail.com
Tue Dec 12 19:16:38 CET 2006


Holy cow,

On 12/12/06, Sander van Gelderen <mail at sandervangelderen.nl> wrote:
> You may also find this posting helpfull:
>
> http://www.typo3forum.net/forum/typo3-3-x-fragen-und-probleme/2832-gmenu_lay
> ers-css.html#post15602
>


Nobody should be advocating the use of T3's *MENU_LAYERS objects.
They're slow, the code they produce is nasty and horrifyingly bloated,
and it's probably the hardest possible way to achieve the needed
result.

Peter's method is good, provided you will be able position your
rollovers well--sometimes this can be quite tricky (i.e. if any part
of your menu needs to be positioned etc).

It's also possible to do what you're talking about with TMENU and the
javascript you were already prepared to use. The trick is not to think
you have to do all the work with ONE menu--use two.

The first menu will be the 'regular' menu--a list of links to pages.
The second menu will be a link of e.g. the contents of the abstract
field of the pages in the menu. Simple, tested example follows (I've
assumed that you'd use DOM methods instead of onmouseover attributes
in the links, but you should be able to adapt it if you want to do it
that way):

page.50 = HMENU
page.50 {	
	1 = TMENU
	1 {
		noBlur = 1
		expAll = 1
		wrap = <ul>|</ul>
		
		NO = 1
		NO {
			wrapItemAndSub = |</li>
			stdWrap.dataWrap = <li id="link_{field:uid}">|
		}
	}
	
	2 < .1
	3 < .1
	4 < .1
}

page.100 = HMENU
page.100 {	
	1 = TMENU
	1 {
		expAll = 1
		wrap = <div id="descriptions">|</div>
		
		NO = 1
		NO {
			doNotLinkIt = 1
		
			stdWrap.cObject = HTML
			stdWrap.cObject {
				value.dataWrap = <div id="desc_{field:uid}">{field:abstract}</div>
			}
		}
	}
	
	2 < .1
	3 < .1
	4 < .1
}



-- 
Christopher Torgalson


More information about the TYPO3-english mailing list