[TYPO3-mvc] form.select add empty option

Stefan Frömken firma at sfroemken.de
Mon Aug 29 18:50:47 CEST 2011


Hello MVC-Team,

I want to add a simple empty option to form.select. The result should 
look like this:

<select ...>
<option value="">--</option>
...
</select>

I tried it this way...but it don't works:

<f:form.select options="{themes}" optionValueField="uid" 
optionLabelField="name" name="theme" value="--">
	<option value="">--</option>
</f:form.select>

Any other ideas?

Stefan


More information about the TYPO3-project-typo3v4mvc mailing list