[TYPO3-mvc] blank first option for <f:form.select /> possible?

Roland most.wanted at gmx.at
Wed May 2 09:33:58 CEST 2012


hi björn,

your solution works - and it is very simple - thanks for the tipp!

kind regards.

roland



Am 30.04.12 21:03, schrieb Bjoern Haverland:
> Hi...
>
> i've solved it this way, in the Controller:
>
> - first you use the toArray function for your options
> (in my case, i have objects out of the db)
>
> - then you use array_merge(Array(null), $your_array);
> -> pass it to the View...
>
> Greetings
>
> Björn
>
>
> Am 30.04.2012 18:15, schrieb Natalia Postnikova:
>> Hi Roland,
>>
>> had the same problem, my solution was an extra view helper:
>> http://www.npostnik.de/typo3/fluid-select-in-formularen-mit-weiteren-optionen/
>>
>>
>> Natalia
>>
>> Am 30.04.2012 16:43, schrieb Roland:
>>> hi tim,
>>>
>>> good idea. i will have to try this - i did not find a working
>>> solution to prepend the blank option. i will post the solution when i
>>> found it.
>>>
>>> kind regards.
>>>
>>> roland
>>>
>>>
>>> Am 30.04.12 09:46, schrieb Tim Schoch | GSTALTIG:
>>>> Hi Roland
>>>> You could prepend the options you pass it in your controller. If
>>>> that's possible...
>>>> Gruess Tim
>>>>
>>>> GSTALTIG GMBH / www.gstaltig.ch
>>>> Sonnenhofstr. 13 / 6020 Emmenbrücke
>>>> tim at gstaltig.ch / 076 488 24 97
>>>>
>>>
>>> _______________________________________________
>>> TYPO3-project-typo3v4mvc mailing list
>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>
>



More information about the TYPO3-project-typo3v4mvc mailing list