Add four-column grid container

This commit is contained in:
Björn Fromme
2022-03-09 14:48:03 +01:00
parent 627ca684ef
commit 8f0376e133
3 changed files with 43 additions and 1 deletions
@@ -27,6 +27,19 @@ call_user_func(function () {
)
);
\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',
[
[
['name' => 'Elemente', 'colPos' => 300],
]
]
)
);
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Container\Tca\Registry::class)->configureContainer(
new \B13\Container\Tca\ContainerConfiguration(
'ep_container_teasergroup',
@@ -56,7 +69,7 @@ call_user_func(function () {
'
];
foreach (['ep_container_halves', 'ep_container_thirds', 'ep_container_teasergroup'] as $field) {
foreach (['ep_container_halves', 'ep_container_thirds', 'ep_container_quarters', 'ep_container_teasergroup'] as $field) {
$GLOBALS['TCA']['tt_content']['types'][$field] = array_replace_recursive(
$GLOBALS['TCA']['tt_content']['types'][$field],
$headerConfig
@@ -20,6 +20,17 @@ tt_content.ep_container_thirds {
}
}
tt_content.ep_container_quarters =< lib.contentElement
tt_content.ep_container_quarters {
templateName = Quarters
templateRootPaths {
10 = EXT:ep_theme/Resources/Private/Templates/Container
}
dataProcessing {
100 = B13\Container\DataProcessing\ContainerProcessor
}
}
tt_content.ep_container_teasergroup =< lib.contentElement
tt_content.ep_container_teasergroup {
templateName = Teasergroup