[TYPO3-mvc] Multidimensional Arguments

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Thu Jan 21 21:03:21 CET 2010


You're welcome; you may are also
interested in this topic:

[TYPO3-mvc] Temporary solution: Persisting/updating nested objects (or 
sub objects) coming from a frontend form

http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2010-January/002618.html

Regards,
Thomas


Sebastian Fischer schrieb:
> Hi Thomas,
> 
> you saved my evening. It's working perfectly.
> 
> Thanks.
> 
> On 21.01.2010 19:13, Thomas "Thasmo" Deinhamer wrote:
>> Try
>> <f:form.hidden name="item[{item.uid}][h]" value="1"/>
>> <f:form.checkbox name="item[{item.uid}][cb]" value="1"
>> checked="{item.uid} ==
>>  > 5" />
>>
>> Where the name 'item' is the property name of the object.
>>
>> Greetings,
>> Thomas
>>
>> Sebastian Fischer schrieb:
>>> Hi everybody,
>>>
>>> lately i have the problem, that i need to have 2dimensional arguments
>>> e.g.:
>>>
>>> <f:form.hidden name="{item.uid}[h]" value="1"/>
>>> <f:form.checkbox name="{item.uid}[cb]" value="1" checked="{item.uid}
>>> == 5" />
>>>
>>> This is needed to have the opportunity to uncheck various items. If
>>> you only submit the checkbox you never get to notize which items are
>>> not checked, because html only submits checked values.
>>>
>>> Solution for that is, to transmit hidden values for every variable
>>> item possible and then check which of them is additionaly checked or 
>>> not.
>>>
>>> If i would transmit as given above i get the error #1210858767:
>>> Invalid argument name.
>>>
>>> Now the 1000 dollar question is, is it possible or not? And if it is,
>>> how does it need to be setup?
>>>
>>> Greets and thanks in advanced
>>>
>>> Sebastian Fischer
>>> Certified TYPO3 Integrator
> 


More information about the TYPO3-project-typo3v4mvc mailing list