[TYPO3-mvc] Configuration of checkbox groups
Robert Böttner
robert at boettner.it
Wed Nov 25 19:13:51 CET 2009
Hi,
I´m wondering how I have to configure object attributes that get collected with checkbox groups. My frontend is based on Ext JS so I don´t use Fluid in these parts of the application.
'countries' is of type string in my Model and a varchar field in the DB.
This is the part of TCA:
'countries' => array(
'exclude' => 0,
'label' => 'LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xml:tx_myext_domain_model_app.countries',
'config' => array(
'type' => 'input',
'size' => 30,
'eval' => 'trim'
)
),
And this is how I name the fields in the form:
{boxLabel: 'Australia', name: 'tx_myext_pi2[app][countries][]', inputValue: '1' },
{boxLabel: 'Austria', name: 'tx_myext_pi2[app][countries][]', inputValue: '2'},
{boxLabel: 'Belgium', name: 'tx_myext_pi2[app][countries][]', inputValue: '3'},
...
Currently nothing gets persisted for these attributes. Can anyone enlighten me?
Cheers
Robert.
More information about the TYPO3-project-typo3v4mvc
mailing list