Created
July 27, 2023 08:30
-
-
Save IndyIndyIndy/1ecb0ed4684e2f50223217d9fa7937fe to your computer and use it in GitHub Desktop.
Example code for ext:container issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Collapse Container | |
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Container\Tca\Registry::class)->configureContainer( | |
( | |
new \B13\Container\Tca\ContainerConfiguration( | |
'container-collapse', // CType | |
'Collapse', // label | |
'Description', // description | |
[ | |
[ | |
[ | |
'name' => 'Content', | |
'colPos' => 1001, | |
'allowed' => ['CType' => 'container-element'], | |
] | |
] | |
] | |
) | |
)->setIcon('content-accordion') | |
); | |
// Container Elemnt (element inside the collapse) | |
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\B13\Container\Tca\Registry::class)->configureContainer( | |
( | |
new \B13\Container\Tca\ContainerConfiguration( | |
'container-element', // CType | |
'Container Element', // label | |
'description', // description | |
[ | |
[ | |
[ | |
'name' => 'Content', | |
'colPos' => 4001, | |
] | |
] | |
] | |
) | |
)->setIcon('content-container-columns-1') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment