metamodels/attribute_translatedtablemulti

MetaModels 动态翻译多属性表格的属性

2.2.1 2023-05-01 13:04 UTC

This package is auto-updated.

Last update: 2024-08-30 01:20:59 UTC


README

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

翻译的多属性表格

MetaModels 的翻译多属性表格。

原始想法来自 Byteworks

翻译的表格多属性。

使用此属性,您可以使用MultiColumnWizard创建复杂的表格结构。例如,在 e.g. app/Resources/contao/config/dcaconfig.php 或配置加载的其他位置创建配置,并写入以下内容

mm_test 是表名,multi_test 是字段名。

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