Actions
Bug #75946
closedExtensionManagementUtility won't insert fields in the right position if the position parameter is set
Start date:
2016-04-27
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
If \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes()
is being used to add custom fields to a table by using the 4th parameter
which defines the position the fields will be appended to the end of the "showitem" string nevertheless.
An example tca overrides looks like this:
$tempCols = [ 'myfield' => array( 'label' => 'MYSUPERFIELD', 'config' => array( 'type' => 'input', 'size' => '20', 'eval' => 'trim' ) ), ] \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempCols); \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'myfield', '', 'after:title');
Actions