Add container for manual product teasers

This commit is contained in:
Björn Fromme
2021-10-15 13:27:02 +02:00
parent 9a2f09b9d2
commit d9a174383e
4 changed files with 88 additions and 14 deletions
@@ -8,7 +8,20 @@ call_user_func(function () {
'33/33/33 Aufteilung',
[
[
['name' => 'Elemente', 'colPos' => 300, 'colspan' => 3],
['name' => 'Elemente', 'colPos' => 300],
]
]
)
);
\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',
[
[
['name' => 'Teaser', 'colPos' => 300],
]
]
)
@@ -30,7 +43,7 @@ call_user_func(function () {
'
];
foreach (['ep_container_thirds'] as $field) {
foreach (['ep_container_thirds', 'ep_container_teasergroup'] as $field) {
$GLOBALS['TCA']['tt_content']['types'][$field] = array_replace_recursive(
$GLOBALS['TCA']['tt_content']['types'][$field],
$headerConfig