Search by

hschottm / contao-textwizard

hschottm

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 creat

Package info

github.com/hschottm/textwizard

Type:contao-bundle

pkg:composer/hschottm/contao-textwizard

Statistics

Installs: 5 603

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

3.6.3 2026-10-28 11:23 UTC

This package is auto-updated.

Last update: 2026-11-01 12:03:21 UTC


README

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

Requirements

  • PHP 8.3 or later
  • Contao 5.7 LTS (^5.7)

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"
),

Release history

Contao 5.7 support

  • Added support for Contao 5.7 and PHP 8.3 or newer.
  • Added drag-and-drop and keyboard sorting using the up/down arrow keys on the drag handle.
  • Updated the new, copy and delete buttons to work with dynamically loaded widgets.
  • Newly created or copied fields receive focus and their contents are selected.
  • Prevented deletion of the final row.
  • Preserved compatibility with existing DCA definitions and stored values, including custom buttonTitles and maxlength settings.
  • Updated action icons to locally bundled SVGs.

Updating existing installations

After updating the extension, clear the Contao cache and reinstall the bundle assets:

vendor/bin/contao-console cache:clear
vendor/bin/contao-console assets:install public

Credits

Action icons are from Lucide 0.468.0. License notices are included in src/Resources/public/icons/lucide/LICENSE.

License

This extension is licensed under the GNU Lesser General Public License, version 3 or (at your option) any later version (LGPL-3.0-or-later). See LICENSE.

Bundled third-party assets retain their respective licenses and copyright notices.