Project

General

Profile

Actions

Bug #104852

open

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

Added by Lina Wolf 3 months ago. Updated about 2 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
Category:
Backend User Interface
Target version:
-
Start date:
2024-09-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Files

Actions #1

Updated by Benjamin Franzke about 2 months ago

  • Status changed from New to Accepted
  • Assignee set to Benni Mack
Actions #2

Updated by Nikita Hovratov about 2 months ago

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.

Actions

Also available in: Atom PDF