[TYPO3-dev] Extbase: Setting relational field to empty using frontend´

Anders Gissel invadercyg at gmail.com
Mon Feb 18 21:12:08 CET 2013


Hello Stefano,

your solution looks a bit hack'y, but it also looks like it would work. 
At least the logic is easily determined, so thanks for that!  I'll try 
crossposting my question in the other newsgroup and see if I'll have 
more luck there. :-)


Best regards,
Anders


On 15-02-2013 19:19, Stefano Cecere wrote:
> Hi Anders
>
> i have the same problem
> i explained it (with a solution i found) here 
> http://forum.typo3.org/index.php/t/194225/
>
> note : the typo3v4mvc newsgroup is the right place for Extbase/Fluid 
> topics
>
> ciao
>
>
> On 14/02/13 14:07, Anders Gissel wrote:
>> Hey y'all,
>>
>> I'm building an Extbase-extension (6.0.1), and my model has a field that
>> relates to another table using a simple dropdown. The user can then
>> select a single value, and all is fine.
>>
>> However: once the user has selected (and saved) a value, he can't empty
>> the field again... I've added an empty value to both the frontend
>> selector and the TCA, but apparently setting an empty value is the same
>> as selecting nothing at all. Therefore, the only way to empty the field
>> is to do it through the backend. Selecting a different value works just
>> fine, but obviously that's not what I'm after.
>>
>> My question then is: how do I empty the field from the frontend? Once
>> the data reaches the controller's updateAction() it has already been
>> processed, so how do I go about it? Can anyone recommend any material on
>> the subject?
>>
>>
>> Best regards,
>> Anders
>
>




More information about the TYPO3-dev mailing list