Project

General

Profile

Actions

Feature #93770

closed

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

Added by Daniel Goerz over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2021-03-18
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions

Also available in: Atom PDF