Remove unused container elements, streamline rendering

This commit is contained in:
Björn Fromme
2022-03-15 17:40:49 +01:00
parent 19dfef8972
commit 496d0945e7
6 changed files with 82 additions and 161 deletions
@@ -1,37 +1,11 @@
<?php
call_user_func(function () {
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Container\Tca\Registry::class)->configureContainer(
new \B13\Container\Tca\ContainerConfiguration(
'ep_container_halves',
'Zweispalter',
'50/50 Aufteilung',
[
[
['name' => 'Elemente', 'colPos' => 300],
]
]
)
);
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Container\Tca\Registry::class)->configureContainer(
new \B13\Container\Tca\ContainerConfiguration(
'ep_container_thirds',
'Dreispalter',
'33/33/33 Aufteilung',
[
[
['name' => 'Elemente', 'colPos' => 300],
]
]
)
);
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Container\Tca\Registry::class)->configureContainer(
new \B13\Container\Tca\ContainerConfiguration(
'ep_container_quarters',
'Vierspalter',
'25/25/25/25 Aufteilung',
'25/25/25/25 Aufteilung mit groß/klein Umschaltung',
[
[
['name' => 'Elemente', 'colPos' => 300],
@@ -43,8 +17,8 @@ call_user_func(function () {
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Container\Tca\Registry::class)->configureContainer(
new \B13\Container\Tca\ContainerConfiguration(
'ep_container_teasergroup',
'Teasergruppe',
'Für Produktteaser mit groß/klein Umschaltung',
'Dreispalter',
'33/33/33 Aufteilung mit groß/klein Umschaltung',
[
[
['name' => 'Teaser', 'colPos' => 300],
@@ -69,7 +43,7 @@ call_user_func(function () {
'
];
foreach (['ep_container_halves', 'ep_container_thirds', 'ep_container_quarters', 'ep_container_teasergroup'] as $field) {
foreach (['ep_container_quarters', 'ep_container_teasergroup'] as $field) {
$GLOBALS['TCA']['tt_content']['types'][$field] = array_replace_recursive(
$GLOBALS['TCA']['tt_content']['types'][$field],
$headerConfig
@@ -91,14 +91,6 @@ TCEFORM {
}
}
ep_container_teasergroup {
disabled = 0
removeItems := addToList(2,3)
altLabels {
0 = mit Hintergrund
1 = ohne Hintergrund
}
}
ep_container_halves {
disabled = 0
removeItems := addToList(2,3)
altLabels {
@@ -106,8 +98,7 @@ TCEFORM {
1 = mit Hintergrund
}
}
ep_container_thirds < .ep_container_halves
ep_container_quarters < .ep_container_halves
ep_container_quarters < .ep_container_teasergroup
}
}