showNewRecordLink¶
- showNewRecordLink¶
- Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']['appearance']
- Type
boolean
- Scope
Display
- Default
true
Disables the New record link in TCA
inline
elements without simultaneously disabling either the + button in the header of each inline record (using ['appearance']['enabledControls']['new']) or all other "level links" (using ['appearance']['levelLinksPosition'] = 'none').
Example¶
Disable the New record button:
'inlineField' => [
'label' => 'Inline without New record link',
'config' => [
'type' => 'inline',
'appearance' => [
'showNewRecordLink' => false,
],
],
],