[TYPO3-english] Menu item formatting conditional on the *next* menu item

Paul Vetch paul.vetch at kcl.ac.uk
Wed Jul 15 10:36:53 CEST 2009


Hi list,

I'm working on a couple of different projects where it would be useful to be 
able to conditionally format a menu item depending on a characteristic of 
the next item in the menu  - for example, depending on the doktype.

To give one case, it would be useful for one thing I'm working on to be able 
to format a menu item differently if the next item is a spacer.  I don't 
want to use anything PID specific to do this in order to keep the most 
flexibility.

My question is - is there a way to do this using pure TS?  I know I can 
easily override a menu item in principal using something like 
NO.allWrap.cObject.override ... but I don't know how to get the properties 
of the next menu item and use them to create the override condition (maybe 
it's impossible! but I normally find most things are possible in TS) .

If anyone has a vaguely similar example they could point me at it would be 
really useful.

Thanks

Paul 



More information about the TYPO3-english mailing list