Skip to content

Commit 30e2805

Browse files
committed
Updated readme
1 parent 55470f8 commit 30e2805

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

readme.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1-
A backport for Feature: #62944 - UserFunc available as Display Condition
1+
# DisplayCondUserFunc
22

3-
Commit: https://github.com/TYPO3/TYPO3.CMS/commit/cdcf56c8f77321f87e4a85974e27385066a23d2c
3+
Backport for Feature: #62944 - UserFunc available as Display Condition (https://forge.typo3.org/issues/62944)
4+
5+
### Description
6+
Being able to use userFunc as displayCondition makes it possible to check on any imaginable condition or state. If any situation can not be evaluated with any of the existing checks the developer is free to add an own user function which provides a boolean result whether to show or hide the TCA field.
7+
8+
```php
9+
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['displayCond'] =
10+
'USER:Evoweb\\Example\\User\\ElementConditionMatcher->checkHeaderGiven:any:more:information';
11+
```
12+
13+
Divided by colons any parameters can be added that are sent to the ConditionMatcher class.
14+
15+
#### TYPO3 7.x Commit
16+
17+
https://github.com/TYPO3/TYPO3.CMS/commit/cdcf56c8f77321f87e4a85974e27385066a23d2c

0 commit comments

Comments
 (0)