Skip to content

MetaModels/attribute_tablemulti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fafbb9d · May 1, 2023
Jan 16, 2023
Feb 1, 2023
Nov 17, 2022
Nov 10, 2022
May 5, 2019
Nov 17, 2022
May 5, 2019
Nov 10, 2022
May 5, 2019
Aug 18, 2020
Apr 26, 2023
Jan 5, 2023
May 5, 2019

Repository files navigation

Build Status Latest Version tagged Latest Version on Packagist Installations via composer per month

The table multi attribute

The table multi attribute for MetaModels.

Original idea by Byteworks:

Configure the table multi attribute

With this attribute you are able to create complex table structures with the MultiColumnWizard. Create the configuration in e.g. the app/Resources/contao/config/dcaconfig.php or somewhere else where the config is loaded and write something like this:

The mm_test is the name of the table and the multi_test is the name of the field.

$GLOBALS['TL_CONFIG']['metamodelsattribute_multi']['mm_test']['multi_test'] = array(
    'tl_class'     => 'clr',
    'minCount'     => 0,
    'columnFields' => array(
        'col_title' => array(
            'label'     => 'Title',
            'exclude'   => true,
            'inputType' => 'text',
            'eval'      => array
            (
                'style'=>'width:130px'
            )
        ),
        'col_highlight' => array(
            'label'     => 'Hervorheben',
            'exclude'   => true,
            'inputType' => 'checkbox',
            'eval'      => array
            (
                'style' => 'width:40px'
            )
        ),
        'col_url' => array(
            'label'     => 'URL',
            'exclude'   => true,
            'inputType' => 'text',
            'eval'      => array
            (
                'style'    =>'width:130px', 
                'mandatory'=>false, 
                'rgxp'     =>'url'
            )
        ),
    ),
);