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

0.1.0 2026-01-13 10:01 UTC

This package is auto-updated.

Last update: 2026-01-13 10:07:09 UTC


README

github version amount of downloads minimum php version

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