heimrichhannot/contao-multi_column_editor

该软件包已被废弃,不再维护。作者建议使用heimrichhannot/contao-multi-column-editor-bundle软件包代替。

此模块提供了一种输入类型,用于在前后端编辑一个或多个记录。

1.4.6 2018-09-18 08:49 UTC

README

此模块提供了一种输入类型,用于在前后端编辑一个或多个记录。

该模块类似于menatwork/MultiColumnWizard,但也可以在前后端使用(结合表单生成模块heimrichhannot/contao-formhybrid)。

alt text

功能

技术说明

在您的字段中使用输入类型"multiColumnEditor"。

'someField' => array(
    'label'     => &$GLOBALS['TL_LANG']['tl_my_table']['someField'],
    'inputType' => 'multiColumnEditor',
    'eval'      => array(
        'multiColumnEditor' => array(
            // set to true if the rows should be sortable (backend only atm)
            'sortable' => false,
            'class' => 'some-class',
            // set to 0 if it should also be possible to have *no* row (default: 1)
            'minRowCount' => 2,
            // set to 0 if an infinite number of rows should be possible (default: 0)
            'maxRowCount' => 5,
            // defaults to false
            'skipCopyValuesOnAdd' => false,
            'fields' => array(
                // place your fields here as you would normally in your DCA
                // (sql is not required)
                'field1' => [
                	'label' => 'field 1'
                	'inputType' => 'text',
                	'eval' => ['groupStyle' => 'width:150px']
                ]
            )
        )
    ),
    'sql'       => "blob NULL"
),