Contao textwizard extension
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Replaced implementation with a more modern Contao 4 implementation Dec 2, 2018
.gitignore Initial commit for Contao 4.4 Nov 30, 2018
.php_cs.dist Changed licenses Dec 2, 2018
README.md Update README.md Dec 2, 2018
composer.json Updated description Dec 5, 2018

README.md

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

contao-textwizard

Contao backend widget for text list input

contao-textwizard is a backend widget that can be used to add or edit a variable list of text input fields unlike the Contao listWizard widget. Additionally to the listWizard functionality contao-textwizard selects the content of a newly created or duplicated text field and it adds a button to create an empty new text field.

textwizard

Use in the data container array (DCA)

'matrixrows' => array
(
  'label'                   => &$GLOBALS['TL_LANG']['tl_survey_question']['matrixrows'],
  'exclude'                 => true,
  'inputType'               => 'textwizard',
  'eval'                    => array(
    'allowHtml'             => true,
    'decodeEntities'        => true,
    'buttonTitles'          => array(
      'new'                 => $GLOBALS['TL_LANG']['tl_survey_question']['buttontitle_matrixrow_new'],
      'copy'                => $GLOBALS['TL_LANG']['tl_survey_question']['buttontitle_matrixrow_copy'],
      'delete'              => $GLOBALS['TL_LANG']['tl_survey_question']['buttontitle_matrixrow_delete']
    )
  ),
  'sql'                     => "blob NULL"
),