lisardo
lisardo

Reputation: 1454

TCA ADD wizard in TYPO 9 and 10

I want to update an extension from TYPO3 v7 to v9. In v7 is it possible to add an ADD-Wizard to a select field in the TCA:

'wizards' => array(
    '_PADDING'  => 2,
    '_VERTICAL' => 1,
    'add' => Array(
        'type' => 'script',
        'title' => 'Create new record',
        'icon' => 'add.gif',
        'params' => Array(
            'table'=>'myTable',
            'pid' => '###CURRENT_PID###',
            'setValue' => 'prepend'
        ),
        'module' => array(
            'name' => 'wizard_add',
        )
    ),
),

in TYPO3 9 this does not work anymore. I the manual i cannot find anything to the TCA wizards anymore since version 8.

Are they gone, or is there an other way to achive the same?

Thanks!

Upvotes: 0

Views: 157

Answers (1)

Mathias Brodala
Mathias Brodala

Reputation: 6460

You need to migrate to fieldControl used since TYPO3v8 and newer.

'fieldControl' => [
    'addRecord' => [
        'disabled' => false,
        'options' => [
            'table' => 'myTable',
            'setValue' => 'prepend',
        ],
    ],
],

Upvotes: 0

Related Questions