Issue Feature Closed

#93770Support ###SITEROOT### as pid in addRecord Wizard

Daniel Goerz 03/18/21, 08:54 updated 05/04/21, 08:04

Description

The TCA Wizard addRecord supports predefining a pid for the record to be crated.

'fieldControl' => [
    'addRecord' => [
        'disabled' => false,
        'options' => [
            'title' => 'Create new Record',
            'table' => 'my_table',
            'pid' => '123',
        ],
    ],
],

The documentation states that there are placeholder supported: [[https://docs.typo3.org/m/typo3/reference-tca/master/en-us/ColumnsConfig/CommonProperties/FieldControl/AddRecord.html?highlight=addrecord#confval-options[pid]]]:

  • ###CURRENT_PID###
  • ###THIS_UID###
  • ###SITEROOT###

While the first two are supported, ###SITEROOT### is not.

Reviews 2