From b59b76ced4a60c0f93579b6263735ef6d74ccdb7 Mon Sep 17 00:00:00 2001 From: Thomas Rawiel Date: Mon, 21 Oct 2024 15:13:14 +0200 Subject: [PATCH] [bugfix] Register container CTypes in CType item group 'default' into the wizard item group 'common' --- Classes/Tca/Registry.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Tca/Registry.php b/Classes/Tca/Registry.php index e079c79f..1f41df6e 100644 --- a/Classes/Tca/Registry.php +++ b/Classes/Tca/Registry.php @@ -283,7 +283,7 @@ public function getPageTsString(): string $groupLabel = $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['itemGroups'][$group] ?? $group; $content = ''; - if (!in_array($group, ['common', 'menu', 'special', 'forms', 'plugins'])) { + if (!in_array($group, ['common', 'default', 'menu', 'special', 'forms', 'plugins'])) { // do not override EXT:backend dummy placeholders for item groups $content .= ' mod.wizards.newContentElement.wizardItems.' . $group . '.header = ' . $groupLabel . ' @@ -294,9 +294,9 @@ public function getPageTsString(): string $item = $key . ' = ' . $item; }); $ttContentDefValues = 'CType = ' . $cType . LF . implode(LF, $containerConfiguration['defaultValues']); - $content .= 'mod.wizards.newContentElement.wizardItems.' . $group . '.show := addToList(' . $cType . ') + $content .= 'mod.wizards.newContentElement.wizardItems.' . ($group === 'default' ? 'common' : $group) . '.show := addToList(' . $cType . ') '; - $content .= 'mod.wizards.newContentElement.wizardItems.' . $group . '.elements { + $content .= 'mod.wizards.newContentElement.wizardItems.' . ($group === 'default' ? 'common' : $group) . '.elements { ' . $cType . ' { title = ' . $containerConfiguration['label'] . ' description = ' . $containerConfiguration['description'] . '