Feature #45514
closedNew TCA displayCond options BIT and !BIT
100%
Description
I want to hide or unhide fields in TCA with displayCond by a multi-value field. So i have a field with multiple checkboxes like that:
'content' => array(
'label' => '...',
'config' => array(
'type' => 'check',
'items' => array(
array('Content A', ''),
array('Content B', ''),
array('Content C', ''),
),
)
),
I also have three content fields like that:
'content_a' => array(
'label' => '...',
'displayCond' => 'FIELD:content:BIT:1',
'config' => array(
'type' => 'text',
)
),
'content_b' => array(
'label' => '...',
'displayCond' => 'FIELD:content:BIT:2',
'config' => array(
'type' => 'text',
)
),
'content_c' => array(
'label' => '...',
'displayCond' => 'FIELD:content:BIT:4',
'config' => array(
'type' => 'text',
)
),
For making that work, i had to add the following lines to class.t3lib_tceforms.php in method isDisplayCondition - case FIELD.
Files
Updated by Bernd Niehues almost 12 years ago
- File feature_45514.diff feature_45514.diff added
- % Done changed from 0 to 100
That's my solution.
Updated by Gerrit Code Review over 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20272
Updated by Wouter Wolters over 11 years ago
- Target version deleted (
4.7.9) - TYPO3 Version changed from 4.7 to 6.2
Updated by Gerrit Code Review over 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20272
Updated by Wouter Wolters over 11 years ago
- Status changed from Under Review to Resolved
Applied in changeset 2bb9cb370f77adab29d964120316952b92bf19c9.