Skip to content

Commit

Permalink
[bugfix] Register container CTypes in CType item group 'default' into…
Browse files Browse the repository at this point in the history
… the wizard item group 'common'
  • Loading branch information
thomasrawiel authored and achimfritz committed Oct 30, 2024
1 parent 2782451 commit b59b76c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Tca/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . '
Expand All @@ -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'] . '
Expand Down

0 comments on commit b59b76c

Please sign in to comment.