diff --git a/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content_element_container.php b/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content_element_container.php index cb0b4043..07a8d2e8 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content_element_container.php +++ b/public/typo3conf/ext/ep_theme/Configuration/TCA/Overrides/tt_content_element_container.php @@ -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 diff --git a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/ContentElements/container.typoscript b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/ContentElements/container.typoscript index 581b52cc..4a076342 100644 --- a/public/typo3conf/ext/ep_theme/Configuration/TypoScript/ContentElements/container.typoscript +++ b/public/typo3conf/ext/ep_theme/Configuration/TypoScript/ContentElements/container.typoscript @@ -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 diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Container/Quarters.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Container/Quarters.html new file mode 100644 index 00000000..5e405d3e --- /dev/null +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Container/Quarters.html @@ -0,0 +1,18 @@ + + + + + + + + + + {record.renderedContent -> f:format.raw()} + + + + + +