[FEATURE] Add TCA option showNewRecordLink
This introduces a new TCA option "showNewRecordLink" for TCA type "inline". It can be used to disable the "New record" link of inline elements, without any side effects for other links/buttons. As a consequence, the "levelLinksPosition" option does not longer support the value "none", as this behaviour (disabling all level links) should be achieved by setting the link specific options to FALSE. This means, the "levelLinksPosition" options should only be used to position the links, if shown at all. A TCA migration is in place. As another side effect, the previously - undocumented - misuse of ['enabledControls']['new'] is resolved. The mentioned option does now only affect the "+" button in each records' header. Resolves: #94765 Related: #94764 Related: #92397 Related: #82489 Releases: master Change-Id: I52bd633714d5527fec8afb37e250ef1782205ed9 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70315 Tested-by:core-ci <typo3@b13.com> Tested-by:
Jochen <rothjochen@gmail.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Jochen <rothjochen@gmail.com> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Showing
- typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php 2 additions, 1 deletion...backend/Classes/Form/Container/InlineControlContainer.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInlineConfiguration.php 10 additions, 6 deletions.../Classes/Form/FormDataProvider/TcaInlineConfiguration.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineConfigurationTest.php 8 additions, 3 deletions...Unit/Form/FormDataProvider/TcaInlineConfigurationTest.php
- typo3/sysext/core/Classes/Migrations/TcaMigration.php 41 additions, 0 deletionstypo3/sysext/core/Classes/Migrations/TcaMigration.php
- typo3/sysext/core/Documentation/Changelog/master/Feature-94765-IntroduceShowNewRecordLinkOption.rst 59 additions, 0 deletions...master/Feature-94765-IntroduceShowNewRecordLinkOption.rst
- typo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php 113 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Migrations/TcaMigrationTest.php
Please register or sign in to comment