[TYPO3-dev] levelfield inside HMENU item

François Suter fsu-lists at cobweb.ch
Mon May 30 10:05:13 CEST 2011


Hi Thomas,

> But this doesn't work:
> import {
>    data = levelfield:2,media
>    listNum = 1
> }
>
> Any ideas on this?

This won't work. The "levelfield" and similar properties use the 
rootline of the current page to find properties. Inside a menu loop, it 
is always the rootline of the current page and not the rootline of each 
page being rendered as a menu item.

Maybe you can do something with a user function, but beware of the cost 
of doing this: going up and down the rootline is an expensive process.

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch




More information about the TYPO3-dev mailing list