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 #1

Updated by Bernd Niehues almost 12 years ago

That's my solution.

Actions #2

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

Actions #3

Updated by Wouter Wolters over 11 years ago

  • Target version deleted (4.7.9)
  • TYPO3 Version changed from 4.7 to 6.2
Actions #4

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

Actions #5

Updated by Wouter Wolters over 11 years ago

  • Status changed from Under Review to Resolved
Actions #6

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF