[TYPO3-english] Extbase checkboxes

Jan Bednarik info at bednarik.org
Thu Dec 17 07:11:52 CET 2015


Hi,

I'm not sure how to do multiselection with checkboxes in ExtBase. At the 
moment, what's working for me is

array $property;

<f:form.checkbox property="property.1" value="1">
<f:form.checkbox property="property.2" value="2">
<f:form.checkbox property="property.3" value="3">

However, when I check e.g. 2 and 3, database stores ",2,3".

I found this guide: 
https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Form/Checkbox.html 
that advises to use serialize/deserialize in setter/getter. Is that the 
recommended way?

Thanks

Jan


More information about the TYPO3-english mailing list