Skip to content

clickstorm/ew_collapsible_container

 
 

Repository files navigation

TYPO3 Extending extbase domain models

build Latest Stable Version Monthly Downloads Total Downloads

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,
            ]
        ]
    ]
);

Add setTemplate to disable ability to collapse for defined container elements.

$configuration->setGridTemplate('EXT:container/Resources/Private/Templates/Grid.html');

Releases

No releases published

Packages

No packages published

Languages

  • Shell 60.6%
  • PHP 17.2%
  • HTML 16.5%
  • JavaScript 5.2%
  • CSS 0.5%