Skip to content

Commit 7cef673

Browse files
committed
[TASK] Move all content elements to one group again
In TCA, the calendarize elements were split up into 3 to 4 groups in calendarize version v15 and were thus displayed in different tabs in the "New content element wizard". We now revert to the old style with only one tab. This can still be configured differently with TCA or TSconfig if deemed necessary. Resolves: #871
1 parent 5142dbb commit 7cef673

1 file changed

Lines changed: 14 additions & 19 deletions

File tree

Configuration/TCA/Overrides/tt_content.php

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,22 @@
66

77
$ll = 'LLL:EXT:calendarize/Resources/Private/Language/locallang.xlf:';
88

9-
foreach (['normal', 'special', 'booking'] as $itemGroup) {
10-
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
11-
'tt_content',
12-
'CType',
13-
'calendarize_' . $itemGroup,
14-
$ll . 'mode.' . $itemGroup,
15-
);
16-
}
17-
18-
$pluginNameAndGroup = array_merge(
19-
array_fill_keys(
20-
['ListDetail', 'List', 'Detail', 'Search', 'Result', 'Latest', 'Single'],
21-
'calendarize_normal',
22-
),
23-
array_fill_keys(
24-
['Year', 'Quarter', 'Month', 'Week', 'Day', 'Past'],
25-
'calendarize_special',
26-
),
27-
['Booking' => 'calendarize_booking'],
9+
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItemGroup(
10+
'tt_content',
11+
'CType',
12+
'calendarize',
13+
'Calendarize',
2814
);
2915

16+
$pluginNameAndGroup = array_fill_keys(
17+
[
18+
'ListDetail', 'List', 'Detail', 'Search', 'Result', 'Latest', 'Single',
19+
'Year', 'Quarter', 'Month', 'Week', 'Day', 'Past',
20+
'Booking',
21+
],
22+
'calendarize',
23+
);
24+
3025
foreach ($pluginNameAndGroup as $pluginName => $group) {
3126
$pluginNameLowercase = strtolower($pluginName);
3227
$pluginSignature = TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(

0 commit comments

Comments
 (0)