---
title: "Configuration"
manual: "LIA Multicolumnwizard"
version: "3.0"
permalink: "https://docs.typo3.org/permalink/lia/lia_multicolumnwizard:configuration@3.0"
source: "Configuration/Index.rst"
rendered: "2026-11-06T13:03:07+00:00"
---

# Configuration {#configuration}

## CType TCA Configuration {#ctype-tca-configuration}

Here you can see a configuration with all the options for configuring the columns of the multicolumn wizard.
The field level options are explained in [Limiting the number of rows](https://docs.typo3.org/permalink/lia/lia_multicolumnwizard:mcw-row-limits@3.0),
[Field length options](https://docs.typo3.org/permalink/lia/lia_multicolumnwizard:mcw-length-options@3.0) and [Reference index](https://docs.typo3.org/permalink/lia/lia_multicolumnwizard:mcw-reference-index@3.0).

### Implementation on parent elements {#implementation-on-parent-elements}

**TCA field configuration**

```php
'multicolumnwizard' => [
    'exclude' => 1,
    'label' => 'MulticolumnField',
    'config' => [
        'type' => 'user',
        'renderType' => 'multiColumnWizard',
        'softref' => 'multiColumnWizardTypolink',
        'minitems' => 0,
        'maxitems' => 4,
        'columnFields' => [
            'exampleMultiColumnWizardTextInput' => [
                'divClass' => 'col-sm-2',
                'type' => 'text',
                'label' => 'Textfield'
                'showLabelAboveField' => true,
                'max' => 40,
                'min' => 3,
            ],
            'exampleMultiColumnWizardTextareaInput' => [
                'divClass' => 'col-sm-2',
                'type' => 'textarea',
                'label' => 'Textarea',
                'cols' => 40,
                'rows' => 5
                'showLabelAboveField' => true,
                'max' => 500,
            ],
            'exampleMultiColumnWizardCheckbox' => [
                'divClass' => 'col-sm-2',
                'type' => 'checkbox',
                'label' => 'Checkbox'
            ],
            'exampleMultiColumnWizardSelect' => [
                'divClass' => 'col-sm-2',
                'type' => 'select',
                'label' => 'Select',
                'options' => [
                    'value' => 'name',
                    'value2' => 'name2',
                    'value3' => 'name3',
                    'value4' => 'name4',
                    'value5' => 'name5'
                ]
            ],
            'exampleMultiColumnWizardSelectIcon' => [
                'divClass' => 'col-sm-2',
                'label' => 'Icon',
                'type' => 'select',
                'options' => '',
                'optionsFunction' => [LIA\LiaMulticolumnwizard\Utilities\IconFactory::class . '->getIcons', ['iconPath' => 'EXT:your_extension/Resources/Public/Icons.json']],
            ],
            'exampleMultiColumnWizardReference' => [
                'divClass' => 'col-sm-2',
                'label' => 'Reference',
                'type' => 'select',
                'options' => '',
                'optionsFunction' => [LIA\LiaMulticolumnwizard\Utilities\ReferenceFactory::class . '->getReference', ['tableName' => 'pages', 'valueField' => 'uid', 'outputNameField' => 'title']],
            ],
            'exampleMultiColumnWizardLanguage' => [
                'divClass' => 'col-sm-2',
                'label' => 'Languages',
                'type' => 'select',
                'options' => '',
                'optionsFunction' => [LIA\LiaMulticolumnwizard\Utilities\TCAFactory::class . '->getAvailableLanguagesForAllSites'],
            ],
            'exampleMultiColumnWizardLinkInput' => [
                'divClass' => 'col-sm-2',
                'type' => 'link',
                'label' => 'Link',
                'allowedTypes' => ['page', 'url', 'file'],
            ],
        ]
    ]
],
```

### Limiting the number of rows {#mcw-row-limits}

The field level options `minitems` and `maxitems` limit how many rows the
wizard accepts. They are named and behave like their counterparts on the native TCA
types `inline`, `select` and `group`. Both default to `0`, which
means "no limit".

**TCA field configuration**

```php
'multicolumnwizard' => [
    'exclude' => 1,
    'label' => 'Buttons',
    'config' => [
        'type' => 'user',
        'renderType' => 'multiColumnWizard',
        'minitems' => 0,
        'maxitems' => 4,
        'columnFields' => [
            // ...
        ],
    ],
],
```

-   `maxitems` counts **rows**. Once it is reached, the "Create new record after
    this record" button of every row is disabled. Records that already exceed the limit
    are still rendered - they are flagged instead of silently truncated, so no data is
    lost when a limit is lowered later on.
-   `minitems` counts **filled rows**. The wizard always keeps one row on screen,
    so a single untouched row counts as zero items.

Violations mark the field with the FormEngine error class. This blocks saving and
raises the standard "fields missing" modal, the same way native TCA types do. Like
those types, the limits are not enforced by the DataHandler.

> [!WARNING]
> `minitems` must not exceed `maxitems`, and both must be non-negative
> integers. Anything else throws an
> `\LIA\LiaMulticolumnwizard\Exceptions\Backend\InvalidOptionValueException`
> while rendering the form.

### Field length options {#mcw-length-options}

Columns of type `text` and `textarea` accept `max` and `min` \-
named after the native TCA options for `input` and `text` \- to limit the
number of characters.

**Column length options**

```php
'exampleMultiColumnWizardTextInput' => [
    'divClass' => 'col-sm-2',
    'type' => 'text',
    'label' => 'Textfield',
    'max' => 40,
    'min' => 3,
],
```

-   `max` renders as `maxlength`, so the browser stops further input.
    `text` columns default to `255`; `textarea` columns stay uncapped
    unless `max` is set.
-   `min` renders as `minlength` and is additionally checked in JavaScript,
    because FormEngine submits the form itself and the browser therefore never runs its
    own `minlength` validation. Empty fields are never flagged - use
    `minitems` to require rows.

### Reference index {#mcw-reference-index}

A multiColumnWizard field stores its rows as a JSON string, which the `typolink`
soft reference parser cannot read. Links maintained in the wizard are therefore invisible
to `sys_refindex` by default: TYPO3 does not warn that a page is still referenced
when it is deleted, and the info module does not list the reference.

The parser key `multiColumnWizardTypolink` closes that gap. It walks the rows, hands
every value of a `link` column to the typolink parser and merges the results, so the
links are indexed like the ones of a native link field.

**TCA field configuration**

```php
'multicolumnwizard' => [
    'exclude' => 1,
    'label' => 'Buttons',
    'config' => [
        'type' => 'user',
        'renderType' => 'multiColumnWizard',
        'softref' => 'multiColumnWizardTypolink',
        'columnFields' => [
            // ...
        ],
    ],
],
```

Run `typo3 referenceindex:update` afterwards to index the existing records. All link
types the typolink parser supports are covered, page and record links included.

> [!NOTE]
> The link columns are read from `columnFields` of the field, unioned with the
> `columnsOverrides` of every record type - the reference index works on the raw
> record and does not resolve the type. A column name used as a link in one record type
> and as something else in another is consequently parsed as a link everywhere.

Set up the DatabaseFileds in your database tables:

**EXT:/your_extension/ext_tables.sql**

```sql
CREATE TABLE tx_yourextension_domain_model_item (
    multicolumnwizard mediumtext,
);
```

and expand your model with variable, getter and setters:

**EXT:/your_extension/Domain/Model/Itenm.php**

```php
/**
* multicolumnwizard
*
* @var string
*/
protected string $multicolumnwizard = '';

[...]

/**
* Returns the multicolumnwizard list (as json)
*
* @return string
*/
public function getMulticolumnwizard(): string
{
    return $this->multicolumnwizard;
}

/**
* Sets the multicolumnwizard
*
* @param string $multicolumnwizard
* @return void
*/
public function setMulticolumnwizard(string $multicolumnwizard): void
{
    $this->multicolumnwizard = $multicolumnwizard;
}
```

#### IconFactory {#iconfactory}

This factory creates an icon selection from the icons in the JSON file.
Your Icon.json file schould look like this.

**Icons.json example**

```json
[
    {"name":"arrow-down","file":"arrow-down.svg"},
    {"name":"book","file":"book.svg"},
    {"name":"car","file":"car.svg"},
    {"name":"chevron-down","file":"chevron-down.svg"},
    {"name":"chevron-right","file":"chevron-right.svg"},
    {"name":"cloud-download","file":"cloud-download.svg"},
    {"name":"comment-alt-exclamation","file":"comment-alt-exclamation.svg"},
    {"name":"comment-alt","file":"comment-alt.svg"},
    {"name":"compass","file":"compass.svg"},
    {"name":"dollar-sign","file":"dollar-sign.svg"},
    {"name":"envelope","file":"envelope.svg"},
    {"name":"euro","file":"euro.svg"},
    {"name":"external-link","file":"external-link.svg"},
    {"name":"fax","file":"fax.svg"},
    {"name":"hands-helping","file":"hands-helping.svg"},
    {"name":"leaf","file":"leaf.svg"},
    {"name":"map-marker-alt-solid","file":"map-marker-alt-solid.svg"},
    {"name":"map-marker-alt","file":"map-marker-alt.svg"},
    {"name":"paper-plane","file":"paper-plane.svg"},
    {"name":"phone","file":"phone.svg"},
    {"name":"swatchbook","file":"swatchbook.svg"},
    {"name":"tasks","file":"tasks.svg"},
    {"name":"user-headset","file":"user-headset.svg"},
    {"name":"users","file":"users.svg"},
    {"name":"video","file":"video.svg"},
    {"name":"wrench","file":"wrench.svg"}
]
```

#### Link Field {#link-field}

A column of type `link` opens the core link browser, in TYPO3 v13 and v14 alike.
It works for wizard fields in a record, in an IRRE child and in a FlexForm.

Three optional column options restrict the link browser. They take the same values
as their counterparts on the native TCA type `link`, but are set directly on
the column:

-   `allowedTypes` \- link handler identifiers offered in the link browser, for
    example `['page', 'url', 'file']`. Unlike the native TCA type, the value
    `record` is not expanded; list the identifiers of the record link handlers
    from `TCEMAIN.linkHandler` instead.
-   `allowedOptions` \- link attributes offered in the link browser, for example
    `['target', 'title']`.
-   `allowedFileExtensions` \- file extensions selectable in the file tab, for
    example `['pdf', 'docx']`.

Each option must be a non-empty list of non-empty strings; anything else throws an
`InvalidOptionValueException`. Without them the link browser offers everything.

**Link Field Example**

```php
$ctype = &$GLOBALS['TCA']['tt_content']['types']['lia_ctypes_mcw_test'];

$ctype['columnsOverrides']['multicolumnwizard']['config']['columnFields'] = [
    'exampleMultiColumnWizardLinkInput' => [
        'divClass' => 'col-sm-2',
        'type' => 'link',
        'label' => 'Link',
        'allowedTypes' => ['page', 'url'],
    ],
];
```

### Implementation on child elements {#implementation-on-child-elements}

you can use the option `'showLabelAboveField' => true`, if this is set the label will be shown in every row

**Useage of showLabelAboveField**

```php
$tca_columns['tx_lia_multicolumnwizard']['config']['columnFields'] = [
    'fieldName_1' => [
        'divClass' => 'col-sm-2',
        'type' => 'text',
        'label' => 'Textxfield'
        'showLabelAboveField' => true,
        'max' => 40,
        'min' => 3,
    ],
    'fieldName_2' => [
        'divClass' => 'col-sm-2',
        'type' => 'textarea',
        'label' => 'Textarea',
        'showLabelAboveField' => true,
        'cols' => 40,
        'rows' => 5
        'max' => 500,
    ],
    'fieldName_3' => [
        'divClass' => 'col-sm-2',
        'type' => 'checkbox',
        'label' => 'Checkbox'
    ],
    'fieldName_4' => [
        'divClass' => 'col-sm-2',
        'type' => 'select',
        'label' => 'Select',
        'options' => [
            'value' => 'name',
            'value2' => 'name2',
            'value3' => 'name3',
            'value4' => 'name4',
            'value5' => 'name5'
        ]
    ],
    'fieldName_5' => [
        'divClass' => 'col-sm-2',
        'label' => 'Icon',
        'type' => 'select',
        'options' => '',
        'optionsFunction' => [LIA\LiaMulticolumnwizard\Utilities\IconFactory::class . '->getIcons', ['iconPath' => 'EXT:your_extension/Resources/Public/Icons.json']],
    ],
    'fieldName_6' => [
        'divClass' => 'col-sm-2',
        'label' => 'Reference',
        'type' => 'select',
        'options' => '',
        'optionsFunction' => [LIA\LiaMulticolumnwizard\Utilities\ReferenceFactory::class . '->getReference', ['tableName' => 'pages', 'valueField' => 'uid', 'outputNameField' => 'title']],
    ],
    'fieldName_7' => [
        'divClass' => 'col-sm-2',
        'label' => 'Languages',
        'type' => 'select',
        'options' => '',
        'optionsFunction' => [LIA\LiaMulticolumnwizard\Utilities\TCAFactory::class . '->getAvailableLanguagesForAllSites'],
    ],
    'fieldName_8' => [
        'divClass' => 'col-sm-2',
        'type' => 'link',
        'label' => 'Link',
    ],
];

$overrideChildTca['types'][1]['showitem'] = '... ,tx_lia_multicolumnwizard, ...';
```

### Override Backend-Template Paths {#override-backend-template-paths}

Backendtemplates can be overridden using the [general backend template override feature](https://docs.typo3.org/m/typo3/reference-tsconfig/13.4/en-us/PageTsconfig/Templates.html)

#### Example {#example}

To overwrite the partial for text-input, place a Partials into the directory:

`extensions/your_extension/Resources/Private/Backend/Partials/Fields/text.html`

and define this in your TSConfig:

```typoscript
templates.lia/lia_multicolumnwizard.1721919321 = your_vendor/your_extension:Resources/Private/Extensions/LiaMulticolumnWizard/Backend
```

### Options function {#options-function}

Here you can also use your own function to generate the selection options. The function must return an array, otherwise you will receive an exception.
Enter the complete class name as the first parameter. The second parameter is the function name followed by an array with all the parameters required to execute your function.
