[TYPO3-dev] TCA condition for input type
Florian Schwaiger
fschwaiger at gmail.com
Mon Apr 21 17:02:56 CEST 2014
Thanks, I feared so.
Initially I thought it would be possible to simply define a field multiple times and switch them via 'displayCond', but this does not work because field names in the columns array need to be unique:
'columns' => array(
...
'event_start' => array(
'config' => array(
'type' => 'input',
'eval' => 'datetime,required'
),
),
'event_end' => array(
'config' => array(
'type' => 'input',
'eval' => 'datetime,required'
),
),
'full_day' => array(
'config' => array(
'type' => 'check'
)
),
), ...
I thought there might be a different config option, such as a 'typeCond', but there isn't any. I will look into a custom JS handler now.
Thank you nevertheless!
More information about the TYPO3-dev
mailing list