hschottm/contao-multitextwizard

contao-multitextwizard 是一个后端小部件,可用于向 Contao 后端表单添加一组文本输入字段。

安装次数: 439

依赖项: 1

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

开放性问题: 0

类型:contao-bundle

1.2.0 2022-08-24 12:21 UTC

This package is auto-updated.

Last update: 2024-08-24 16:22:24 UTC


README

Latest Version on Packagist Installations via composer per month Installations via composer total

contao-multitextwizard

Contao 后端文本列表输入小部件

contao-textwizard 是一个后端小部件,可用于向 Contao 后端表单添加和编辑一组文本输入字段。

textwizard

在数据容器数组(DCA)中使用

'authors' => array
(
  'label'                   => &$GLOBALS['TL_LANG']['tl_extension']['authors'],
  'inputType'               => 'multitextWizard',
  'save_callback'           => array(array('tl_extension', 'saveAuthors')),
  'load_callback'           => array(array('tl_extension', 'loadAuthors')),
  'eval'                    => 
    array(
      'mandatory' => false, 
      'doNotSaveEmpty'=>true, 
      'style' => 'width: 100%;', 
      'columns' => array
      (
        array
        (
          'label' => &$GLOBALS['TL_LANG']['tl_extension']['firstname'],
          'width' => '180px'
        ),
        array
        (
          'label' => &$GLOBALS['TL_LANG']['tl_extension']['lastname'],
        )
      ),
      'buttonTitles' => array(
        'rnew' => $GLOBALS['TL_LANG']['tl_extension']['buttontitle_author_new'], 
        'rcopy' => $GLOBALS['TL_LANG']['tl_extension']['buttontitle_author_copy'], 
        'rdelete' => $GLOBALS['TL_LANG']['tl_extension']['buttontitle_author_delete']
      )
    ),
  'sql'                     => "blob NULL"
),