Project

General

Profile

Actions

Bug #75946

closed

ExtensionManagementUtility won't insert fields in the right position if the position parameter is set

Added by Thomas Schlumberger almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
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');


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #75830: Better positionName extraction in ExtensionManagementUtility::executePositionedStringInsertionClosed2016-04-21

Actions
Has duplicate TYPO3 Core - Bug #76029: Regex in ExtensionManagementUtility::executePositionedStringInsertion is broken if you want to insert after a paletteRejected2016-05-03

Actions
Has duplicate TYPO3 Core - Bug #76046: After 7.6.6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes failsClosed2016-05-04

Actions
Actions

Also available in: Atom PDF