Issue Bug Closed

#56812TCA fields without positioning added to last tab, not "Extended" tab

Mathias Brodala 03/12/14, 12:59 updated 06/17/24, 20:05

Description

TCA fields added via ExtensionManagementUtility::addToAllTCAtypes are appended to the showitem list of all types if no explicit positioning (e.g. after:title) has been requested.

By default this appends the fields to the “Extended” tab which is present by default and ready to receive all fields which are simply appended.

However, if one adds a new tab via --div-- without explicit positioning with some fields, all unrelated fields without explicit positioning are now appended to this tab instead. The resulting showitem portion which makes the issue clear:

> —div—;LLL:EXT:cms/locallang_ttc.xlf:tabs.extended, —div—;LLL:EXT:myext/locallang_db.xml:mytab, tx_myext_myfield;;;;1-1-1, unrelated_field

The new tab with the field tx_myext_myfield was simply appended to the showitem list, thus preventing the “Extended” tab from being the last. The unrelated_field is now placed in the new tab.

A temporary fix is to set a explicit position for the newly added tab; this ensures that the tab and its fields are not simply appended and leaves the “Extended” tab on the last position.

The real fix however would involve explicitely placing all fields without explicit positioning in the “Extended” tab. This way arbitrary tabs could be appended without unrelated fields showing up in them.

This issue affects all TYPO3 CMS versions.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 11

  1. Mathias Brodala changed target version 04/01/14, 16:44

  2. Felix Kopp changed status New Needs Feedback parent task #62836 TYPO3 Version 6.2 7 PHP Version 5.3 12/13/14, 14:51

  3. Alexander Opitz commented and changed TYPO3 Version 7 6.2 12/14/14, 17:17

    Please do not change the version number an issue startet to exists.

  4. Mathias Brodala commented 12/15/14, 13:05

    What feedback do you need? I think the original description is quite descriptive. Is there something missing?

  5. Alexander Opitz commented and changed status Needs Feedback New 06/15/15, 10:35

    Reset Feedback, as there was no question given.

  6. Benni Mack commented and changed status New Needs Feedback 11/03/15, 18:04

    The real problem is that this “Extended” tab is actually just a workaround to not add anything non-specific to the last tab.

    So I think this should be the way to go:
    - Remove all default Extended tabs in tt_content of the core (or wherever this is used currently)
    - Add a special placeholder for everything that was added without positioning, and any tabs that are added BEFORE that placeholder.

    Does that make sense?

  7. Benni Mack changed parent task #62836 11/03/15, 18:05

  8. Stephan Brun commented 11/09/15, 11:53

    Since there are sys_categories this “workaround” fails. The the non-specific/non-positioned fields are now on the tab “Categories”.

  9. Mathias Schreiber changed target version 11/12/15, 17:16

  10. Alexander Opitz changed status Needs Feedback New 02/26/16, 16:33

  11. Georg Ringer commented and changed status New Closed 06/17/24, 20:05

    I am closing this issue for now as issues with categories has been solved and nothing will change regarding the “extended” tab