[TYPO3-mvc] Fluid checkbox - group from objectStorage
Jonas Götze
jonnsn at gmail.com
Fri May 28 09:52:46 CEST 2010
Hi list,
I have an Objectstorage and want to render the possible objects as
checkboxes.
Fluid currently offers checkboxes for boolean and array-types
(propertyValue). If its an array it appends [] to the name, so that it
can be handled correctly by Extbase afterwards and also checks if the
value should be checked already.
This should imho be the same if it is an object storage.
Somehow like that (in render-Method of CheckboxViewHelper):
elseif (get_class($propertyValue) == Tx_Extbase_Persistence_ObjectStorage){
$checked = $propertyValue->contains($valueAttribute);
$nameAttribute .= '[]';
}
What do you think?
Should I otherwise convert my objectStorage to an array in the
getProperty-Method to get it correctly working?
Regards
Jonas
More information about the TYPO3-project-typo3v4mvc
mailing list