Issue Bug Closed

#104852New content elements without group are added to group "-"

Lina Wolf 09/07/24, 15:57 updated 08/11/26, 08:46

Description

With https://review.typo3.org/c/Packages/TYPO3.CMS/+/73488 new content elements are automatically added to the “New content elements” wizard.

When you add a content element like this:

ExtensionManagementUtility::addTcaSelectItem(
    'tt_content',
    'CType',
    [
        'label' => 'LLL:EXT:examples/Resources/Private/Language/locallang.xlf:examples_dataprocdb_title',
        'value' => 'examples_dataprocdb',
        'icon' => 'mimetypes-x-content-table',
    ],
);

Therefore without a group it is added to the very top in the CType select field and to a tab with caption “-” in the wizard.

I would suggest to add it to the group “default” instead. The group name “default” implies that it is the default group indeed.

clipboard-202409071757-djtva.png

Reviews 2

Files 1

History 412

  1. Benjamin Franzke changed status New Accepted assigned to Benni Mack <span data-processor="relativetime" data-value="2024-10-07T13:03:21+00:00" > 10/07/24, 13:03 </span>

  2. Nikita Hovratov commented <span data-processor="relativetime" data-value="2024-10-08T13:20:25+00:00" > 10/08/24, 13:20 </span>

    I think it’s a good idea to add new elements to group “default” by default :)
    Content Blocks already does this as well.
    This would need to be added right to the addTcaSelectItem helper method, so that it is in line with the dropdown.

  3. Gerrit Code Review pushed patch set 1 for main to change 92736 status Accepted Under Review <span data-processor="relativetime" data-value="2026-02-07T09:54:46+00:00" > 02/07/26, 09:54 </span>

  4. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-06-24T13:55:11+00:00" > 06/24/26, 13:55 </span>

    Applied in changeset commit:2bbc3b15cd413803b5a3dd865cec19c79322c89c.