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

Updated by Markus Klein almost 8 years ago

  • Description updated (diff)
Actions #2

Updated by Markus Klein almost 8 years ago

  • Status changed from New to Needs Feedback

I use this API hundreds of times and I don't have any problems. Maybe some other ext is overriding your TCA again?
(check the order how extensions are loaded in the PackageStates.php)

Actions #3

Updated by Gerrit Code Review almost 8 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #4

Updated by Gerrit Code Review almost 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #5

Updated by Gerrit Code Review almost 8 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #6

Updated by Gerrit Code Review almost 8 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #7

Updated by Gerrit Code Review almost 8 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #8

Updated by Gerrit Code Review almost 8 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #9

Updated by Gerrit Code Review almost 8 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #10

Updated by Gerrit Code Review almost 8 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #11

Updated by Oliver Hader almost 8 years ago

  • Target version set to next-patchlevel
  • Is Regression changed from No to Yes
Actions #12

Updated by Oliver Hader almost 8 years ago

  • TYPO3 Version changed from 7 to 6.2
Actions #13

Updated by Oliver Hader almost 8 years ago

  • TYPO3 Version changed from 6.2 to 7
Actions #14

Updated by Gerrit Code Review almost 8 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47935

Actions #15

Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47952

Actions #16

Updated by Thomas Schlumberger almost 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #17

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF