[TYPO3-mvc] Dynamic creation of nested properties

Stefan Kreisberg stefan at shufflebee.dk
Mon Feb 23 10:36:33 CET 2015


Hi all,

I'm fairly new to extbase, however here trying to write a dynamic createAction FE-wise, using T3 6.9 and extbase

I have a model where my createAction has nested properties that I create from one input form. Can anyone point me in a direction on whether the following should be/is possible:

<input name="tx_myext[MyModel][SomeProperties][0][SubObj][][SobObjTitle]">
<input name="tx_myext[MyModel][SomeProperties][0][SubObj][][SobObjTitle]">

Do I strictly _have_to_ index the 0...* SubObj so that the above renders like

<input name="tx_myext[MyModel][SomeProperties][0][SubObj][0][SobObjTitle]">
<input name="tx_myext[MyModel][SomeProperties][0][SubObj][1][SobObjTitle]">

Or can I assume that the createAction will find and recognize each SubObj elm without the (sub) index?

I've allowed subProperties through initialize controller, so it's a simple matter of formatting my form to make the creation of objects with nested properties doable.

Any hints will be greatly appreciated :-)



More information about the TYPO3-project-typo3v4mvc mailing list