zoglo / contao-collection-widget
CollectionWidget for Contao Open Source CMS
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:contao-bundle
pkg:composer/zoglo/contao-collection-widget
Requires
- php: ^8.1
- codefog/contao-haste: ^5.3
- contao/core-bundle: ^5.3
- symfony/asset: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
Requires (Dev)
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
Description
This bundle adds a widget that allows adding a collection of widgets. The data can be stored as a serialized array in the database.
Installation
Via composer
composer require zoglo/contao-collection-widget
Configuration
$GLOBALS['TL_DCA']['tl_content']['fields']['headline_test'] = [ 'search' => true, 'inputType' => 'collection', 'fields' => [ 'value' => [ 'inputType' => 'text', 'eval' => ['maxlength'=>200, 'basicEntities'=>true] ], 'unit' => [ 'inputType' => 'select', 'options' => ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] ], ], 'eval' => ['tl_class'=>'w50 clr'], 'sql' => [ 'type' => 'string', 'length' => '255', 'notnull' => true, ], ];