Project

General

Profile

Actions

Bug #93595

closed

TCA inline element: appearance config partially not working

Added by Chris no-lastname-given over 3 years ago. Updated over 3 years ago.

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

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

v10.4.8.png (175 KB) v10.4.8.png TYPO3 10.4.8 Chris no-lastname-given, 2021-02-26 16:26
v10.4.9.png (84.8 KB) v10.4.9.png TYPO3 10.4.9 Chris no-lastname-given, 2021-02-26 16:26
new-control.png (3.95 KB) new-control.png Oliver Bartsch, 2021-03-23 19:51

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #82489: No newRecordLink if config.appearance.enabledControls.new = falseClosed2017-09-15

Actions
Actions #1

Updated by Oliver Bartsch over 3 years ago

  • Related to Bug #82489: No newRecordLink if config.appearance.enabledControls.new = false added
Actions #2

Updated by Oliver Bartsch over 3 years ago

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?

Actions #3

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.

Actions #4

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.

Actions

Also available in: Atom PDF