Bug #79822
closed
UserFunc in TCA displayCond
Added by Stephan Ederer about 7 years ago.
Updated over 6 years ago.
Sprint Focus:
Stabilization Sprint
Description
Upgraded TYPO3 from 8.5.1 => 8.6.0.
On 8.6.0 user functions in TCA displayCond doesn't work.
- Status changed from New to Needs Feedback
- Target version changed from 8.6 to 8 LTS
- Sprint Focus set to Stabilization Sprint
not enough information.
is the 'userFunc' called at all, did the arguments change?
please provide an example userfunc and tca example.
- the userFunc arguments wasn't changed
- the 'userFunc' is not called (in 8.5.1 userFunc is called)
TCA/Overrides/pages.php:
<?php
$pagesFields = array(
'title' => array(
'label' => 'title',
'exclude' => 1,
'config' => array(
'type' => 'check',
'default' => 0
),
'displayCond' => 'USER:Ur\UrTemplate\UserFunctions\PageTS\FieldVisibility->isVisible'
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $pagesFields);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes(
'pages',
'--div--;TEST,title,'
);
Classes/UserFunctions/PageTS/FieldVisibility.php:
<?php
namespace Ur\UrTemplate\UserFunctions\PageTS;
class FieldVisibility
{
// simple example, tests call of userFunc
public function isVisible(array $conditionParameters)
{
return true;
}
}
- Status changed from Needs Feedback to New
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF