hschottm/contao-multitextwizard

contao-multitextwizard is a backend widget that can be used to add an array of text input fields to Contao backend forms.

Installs: 454

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Type:contao-bundle

1.2.0 2022-08-24 12:21 UTC

This package is auto-updated.

Last update: 2024-10-24 16:36:09 UTC


README

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

contao-multitextwizard

Contao backend widget for text list input

contao-textwizard is a backend widget that can be used to add and edit an array of text input fields to Contao backend forms.

textwizard

Use in the data container array (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"
),