evoweb / ew-collapsible-container
Collapsible container
Fund package maintenance!
garbast
www.paypal.me/garbast
Installs: 3 841
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 2
Open Issues: 0
Language:Shell
Type:typo3-cms-extension
Requires
- b13/container: ^3.1.1
- typo3/cms-backend: ^13.0 || 13.0.x-dev || dev-main
- typo3/cms-core: ^13.0 || 13.0.x-dev || dev-main
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64.0
- friendsoftypo3/phpstan-typo3: ^0.9.0
- phpstan/phpdoc-parser: ^1.30.0
- phpstan/phpstan: ^1.12.5
- phpunit/phpunit: ^11.0.3
- typo3/testing-framework: dev-main
README
Installation
via Composer
The recommended way to install ew_collapsible_container is by using Composer:
composer require evoweb/ew-collapsible-container
quick introduction
Adds ability to collapse a container in backend to get children out of the way.
Add 'collapsed' to column definition when registering ContainerConfiguration to collapse elements initially.
$configuration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( \B13\Container\Tca\ContainerConfiguration::class, 'demo_container', $languageFile . 'CType.I.demo_container', $languageFile . 'CType.I.demo_container-plus_wiz_description', [ [ [ 'name' => 'Elements', 'colPos' => 200, 'allowed' => ['CType' => 'kwicks_element'], 'collapsed' => true, 'minitems' => 1, 'maxitems' => 5, ] ] ] ); $configuration->setGroup('ew_fischer'); $configuration->setIcon('content-card-group'); GeneralUtility::makeInstance(Registry::class)->configureContainer($configuration);
Add setTemplate to disable ability to collapse for defined container elements.
$configuration->setGridTemplate('EXT:container/Resources/Private/Templates/Grid.html');