[TASK] Deprecate plugin content element and plugin subtypes (list_type)
Historically, plugins were commonly registered as subtypes of the content element `list` by using the `list_type` field. In this setup, `CType` was set to `list` for all plugins, while the actual plugin key was defined in the `list_type` field. This approach however led to several problems: * Different plugins required different fields in the backend form, resulting in complex and often convoluted TCA configurations to manage form behavior. * The existence of the `list_type` made a separate layer of content element definitions in the TypoScript necessary. * The use of `list_type` did not provide any significant benefits and made permission handling and other backend processes more cumbersome. The recommended way to create plugins is to use dedicated `CType` content elements for each plugin. Several popular TER extensions have already migrated from `list_type` to `CType` plugins. In order to unify content element registration and to remove various `list_type` related core hacks, the plugin content element and plugin subtypes have therefore been deprecated. The deprecation introduces the new `AbstractListTypeToCTypeUpdate` update wizard, which 3rd party extension authors can extend in order to add a update wizard to custom extension, which performs the required record and backend user permission migration. To prevent hundreds of functional tests showing a deprecation warning, several fixture extensions have been adapted, so plugins are configured as `CType`. Resolves: #105076 Releases: main Change-Id: I82532377cf5764ad90b55aa0ff3e16b4bea74a3d Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/86253 Tested-by:Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Showing
- typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php 8 additions, 1 deletion...ysext/core/Classes/Utility/ExtensionManagementUtility.php
- typo3/sysext/core/Documentation/Changelog/13.4/Deprecation-105076-PluginContentElementAndPluginSubTypes.rst 94 additions, 0 deletions...recation-105076-PluginContentElementAndPluginSubTypes.rst
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_irre_foreignfield/ext_localconf.php 2 additions, 1 deletion...tures/Extensions/test_irre_foreignfield/ext_localconf.php
- typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php 5 additions, 3 deletions...ore/Tests/Unit/Utility/ExtensionManagementUtilityTest.php
- typo3/sysext/extbase/Classes/Utility/ExtensionUtility.php 6 additions, 1 deletiontypo3/sysext/extbase/Classes/Utility/ExtensionUtility.php
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/ext_localconf.php 6 additions, 2 deletions...tional/Fixtures/Extensions/blog_example/ext_localconf.php
- typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/parent_child_translation/ext_localconf.php 2 additions, 1 deletion...res/Extensions/parent_child_translation/ext_localconf.php
- typo3/sysext/extbase/Tests/Unit/Utility/ExtensionUtilityTest.php 124 additions, 65 deletions...ysext/extbase/Tests/Unit/Utility/ExtensionUtilityTest.php
- typo3/sysext/fluid/Tests/Functional/Fixtures/Extensions/test_translate/ext_localconf.php 2 additions, 0 deletions...onal/Fixtures/Extensions/test_translate/ext_localconf.php
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/Extensions/form_caching_tests/ext_localconf.php 5 additions, 2 deletions.../Fixtures/Extensions/form_caching_tests/ext_localconf.php
- typo3/sysext/form/Tests/Functional/RequestHandling/Fixtures/OnePageWithMultipleFormIntegrationsScenario.yaml 3 additions, 3 deletions...Fixtures/OnePageWithMultipleFormIntegrationsScenario.yaml
- typo3/sysext/frontend/Configuration/TCA/tt_content.php 2 additions, 0 deletionstypo3/sysext/frontend/Configuration/TCA/tt_content.php
- typo3/sysext/install/Classes/Updates/AbstractListTypeToCTypeUpdate.php 296 additions, 0 deletions...install/Classes/Updates/AbstractListTypeToCTypeUpdate.php
- typo3/sysext/install/Classes/Updates/IndexedSearchCTypeMigration.php 6 additions, 173 deletions...t/install/Classes/Updates/IndexedSearchCTypeMigration.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassConstantMatcher.php 5 additions, 0 deletions...nfiguration/ExtensionScanner/Php/ClassConstantMatcher.php
- typo3/sysext/install/Tests/Functional/Updates/Fixtures/IndexedSearchBasePartiallyMigration.csv 16 additions, 0 deletions.../Updates/Fixtures/IndexedSearchBasePartiallyMigration.csv
- typo3/sysext/install/Tests/Functional/Updates/Fixtures/IndexedSearchPartiallyMigrated.csv 1 addition, 1 deletion...ional/Updates/Fixtures/IndexedSearchPartiallyMigrated.csv
- typo3/sysext/install/Tests/Functional/Updates/IndexedSearchCTypeMigrationTest.php 4 additions, 17 deletions...ts/Functional/Updates/IndexedSearchCTypeMigrationTest.php
Please register or sign in to comment