Bug #93595
closedTCA inline element: appearance config partially not working
0%
Description
Updating from TYPO3 v10.4.8 to v10.4.9 the TCA config['appearance']['enabledControls']['new'] = false for inline elements is not respected anymore. I still get the button Create new for new child-record.
This is my TCA config:
'myField' => [
'exclude' => true,
'label' => 'News',
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_news_domain_model_news',
'foreign_field' => 'author',
'disableMovingChildrenWithParent' => true,
'enableCascadingDelete' => false,
'appearance' => [
'useSortable' => false,
'enabledControls' => [
'info' => false,
'new' => false,
'dragdrop' => false,
'sort' => false,
'hide' => false,
'delete' => false,
'localize' => false,
],
],
]
],
See attached screenshots.
Files
Updated by Oliver Bartsch over 3 years ago
- Related to Bug #82489: No newRecordLink if config.appearance.enabledControls.new = false added
Updated by Oliver Bartsch over 3 years ago
- File new-control.png new-control.png added
- Status changed from New to Needs Feedback
Hi,
this behaviour was actually a bug, which was solved in #82489. The ['appearance']['enabledControls']['new']
option is only meant for managing the "+" (new) button of the control section in each records header.
To hide the general "Create new" button for the inline field, you have to set ['appearance']['levelLinksPosition']
to none
.
From https://docs.typo3.org/m/typo3/reference-tca/10.4/en-us/ColumnsConfig/Type/Inline.html#appearance:
levelLinksPosition (string)
Values: ‘top’ (default), ‘bottom’, ‘both’, ‘none’. Defines where to show the “New record” link in relation to the child records.
Could you please try if this solves the issue for you?
Updated by Chris no-lastname-given over 3 years ago
Thanks for clarifying this. You are totally right, ['appearance']['levelLinksPosition'] = 'none'
is the place to configure the general "Create new" button.
This issue can be closed.
Updated by Oliver Bartsch over 3 years ago
- Status changed from Needs Feedback to Closed
Thank you for the fast feedback. Therefore, I'll close the issue.