Skip to content

menatwork/attribute_translatedmulti

 
 

Repository files navigation

Translated multi table

The translated multi table attribute.

With this attribute you are able to create complex table structures with the MultiColumnWizard. Create a config in the initConfig or somewhere else and write something like this:

$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'
            )
        ),
    ),
);

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

About

Dynamic translated multi table wizard

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 98.1%
  • HTML 1.2%
  • ApacheConf 0.7%