Skip to content

Instantly share code, notes, and snippets.

@IndyIndyIndy
Created July 27, 2023 08:30
Show Gist options
  • Save IndyIndyIndy/1ecb0ed4684e2f50223217d9fa7937fe to your computer and use it in GitHub Desktop.
Save IndyIndyIndy/1ecb0ed4684e2f50223217d9fa7937fe to your computer and use it in GitHub Desktop.
Example code for ext:container issue
// 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