[TYPO3-50-general] TypoScript syntax: Array indexes

Ingo Renner typo3 at ingo-renner.com
Thu Jul 19 11:57:28 CEST 2007


Robert Lemke wrote:

Hi

>    myArrayObject = ContentArray
> 
>    myArrayObject[10] = Text
>    myArrayObject[10].value = "Hello "
> 
>    myArrayObject[20] = Text
>    myArrayObject[20].value = "world!"



> But there's even more trouble at the horizon: TypoScript allows for 
> implicitly defining array objects, on the fly:
> 
>    anotherObject.sub1.sub2.sub3 = ContentArray
>    anotherObject.sub1.sub2.sub3.1 = Text
>    anotherObject.sub1.sub2.sub3.1.value = "Yawn"


what about

anotherObject[sub1][sub2][sub3].1 = Text

? Seems pretty obvious I think.


Ingo



More information about the TYPO3-project-5_0-general mailing list