Login / Status
developer.Resource
Home . Documentation . Document Library . Core Documentation
Sponsors
hosted by punkt.deTYPO3 and Open Source MagazineAOE Media

7.4. optionSplit

But what is it anyway, optionSplit? Why would I care?

optionSplit is very powerful because it provides a way to set different values for the properties of your menu objects based on whether they are the first, the last or "middle" elements in the menu. optionSplit works on all properties and their values in the TypoScript of a whole menu object!

For instance, if I would like the first element to be yellow, the last element to be blue and any other elements to be white, I can specify the

    fontColor = yellow |*| white |*| blue

like that. Result:

If I add another page to the testsite, the menu will be updated accordingly:

Challenge (IMGMENU/2)

Can you define a optionSplit for the color of the vertical line that would make it alter between white and black?



TYPO3 Core API

TSRef

TYPO3 Coding Guidelines