[TYPO3] levelfield in TMENUITEM

Francois Suter fsuter at cobweb.ch
Fri Nov 10 09:56:22 CET 2006


Hi,

I would like to use the levelfield function of the getText datatype  
inside a TMENUITEM, but it seems this is not possible.

My goal is to retrieve for each page in the menu, some property that  
is defined for the page itself or somewhere higher in the page tree.  
So ideally I would like to do something like that:

lib.menu = HMENU
lib.menu {
	1 = TMENU
	1 {
		wrap = <ul>|</ul>
		NO.stdWrap2.dataWrap = <li class="{levelfield: -1, some_field,  
slide}">|</li>
	}
}

The problem is that it seems that levelfield applies to the page  
being displayed and not to the individual pages being processed as  
menu items. Is there any way of achieving this?

Thanks

François Suter
Directeur technique
-----------------------------------------------------
Cobweb Development Sàrl
www.cobweb.ch
-----------------------------------------------------




More information about the TYPO3-english mailing list