Project

General

Profile

Actions

Feature #45514

closed

New TCA displayCond options BIT and !BIT

Added by Bernd Niehues almost 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2013-02-15
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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

feature_45514.diff (679 Bytes) feature_45514.diff Bernd Niehues, 2013-02-15 16:32
Actions

Also available in: Atom PDF