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

Elmar Hinz elmar07 at googlemail.com
Thu Jul 19 16:12:31 CEST 2007


Ingo Renner wrote:
> 
> 
> what about
> 
> anotherObject[sub1][sub2][sub3].1 = Text
> 
> ? Seems pretty obvious I think.
> 
> 
> Ingo

Right!

If 

page.value = xyz
page[something] = xy
page.10 = xy

then also

page[sub1][sub2][sub3].10 = xyz



Even 

page[something] = xy
page[something][sub2][sub3].10 = xyz

wouldn't cause a conflict. "something" doesn't need an object definition.
It's created on the fly.


But compare:

page[something] = TEXT
page[something][sub2][sub3].10 = xyz

page[something] = "TEXT"
page[something][sub2][sub3].10 = xyz



Regards

Elmar









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