Add container with two columns

This commit is contained in:
Björn Fromme
2021-11-08 17:32:11 +01:00
parent b212b8928c
commit bfaa7d67a6
4 changed files with 44 additions and 6 deletions
@@ -1,6 +1,19 @@
<?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',
@@ -43,7 +56,7 @@ call_user_func(function () {
'
];
foreach (['ep_container_thirds', 'ep_container_teasergroup'] as $field) {
foreach (['ep_container_halves', 'ep_container_thirds', 'ep_container_teasergroup'] as $field) {
$GLOBALS['TCA']['tt_content']['types'][$field] = array_replace_recursive(
$GLOBALS['TCA']['tt_content']['types'][$field],
$headerConfig