[TYPO3-mvc] using 1 form for multiple objects

Steffen Ritter info at rs-websystems.de
Mon May 10 07:52:31 CEST 2010


Am 10.05.2010 00:00, schrieb Alex Bailey:
> Hey everyone,
>
> I'm having a problem and I can't seem to figure it out.
> I have one Form in which I show a variable number of objects (timetable
> entrys). Now what I want to do is wrap a form around those objects and
> submit them to an action in my controller. Atm when I build a form I can
> send 1 object to 1 action but what I want to do is send an array with my
> different objects to 1 action. The objects are all the same typee but
> have different values.Is there a way to submit an array of objects to an
> action by using a fluid form?
>
> Best Regards
>
> Alex
Yes there is: a workaround: You may create a dummy object with just one 
property: several of your other objects. Put this object into the form, 
you will just submit "one" but may have as much timetable entries as you 
want.


More information about the TYPO3-project-typo3v4mvc mailing list