简体   繁体   中英

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!

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM