[FEATURE] Introduce TCA type "category"
A new TCA type "category" is introduced, which allows to simplify the configuration of category TCA columns. Besides the benefit for integrators, this allows to deprecate the CategoryRegistry in the next step. The new type can also be used for other use cases. Therefore, the TCA option "relationship" is available for this TCA type. Besides "manyToMany" (default), this can also be set to "oneToOne" or "oneToMany". Using the new type, FormEngine will always render a category tree. This means, no additional `renderType` is defined. In such case, TCA type "select" can still be used as before, without any limitation. However, all relevant places in core are adjusted in this patch. The category element is rendered through a custom element (web component), reducing inline javascript. Resolves: #94622 Releases: master Change-Id: I1b95c42288b070fa6bac114266f5ad246a045b21 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69899 Tested-by:core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/CategoryElement.ts 166 additions, 0 deletions...s/Public/TypeScript/FormEngine/Element/CategoryElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/SelectTreeElement.ts 8 additions, 103 deletions...Public/TypeScript/FormEngine/Element/SelectTreeElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Element/SelectTreeToolbar.ts 111 additions, 0 deletions...Public/TypeScript/FormEngine/Element/SelectTreeToolbar.ts
- typo3/sysext/backend/Classes/Form/Element/CategoryElement.php 169 additions, 0 deletions...3/sysext/backend/Classes/Form/Element/CategoryElement.php
- typo3/sysext/backend/Classes/Form/FieldWizard/OtherLanguageContent.php 4 additions, 4 deletions...backend/Classes/Form/FieldWizard/OtherLanguageContent.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseRecordTypeValue.php 4 additions, 4 deletions...Classes/Form/FormDataProvider/DatabaseRecordTypeValue.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/DatabaseRowInitializeNew.php 3 additions, 7 deletions...lasses/Form/FormDataProvider/DatabaseRowInitializeNew.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaCategory.php 228 additions, 0 deletions...ext/backend/Classes/Form/FormDataProvider/TcaCategory.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexProcess.php 7 additions, 8 deletions.../backend/Classes/Form/FormDataProvider/TcaFlexProcess.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInputPlaceholders.php 1 addition, 0 deletions...nd/Classes/Form/FormDataProvider/TcaInputPlaceholders.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php 1 addition, 0 deletions.../backend/Classes/Form/FormDataProvider/TcaRecordTitle.php
- typo3/sysext/backend/Classes/Form/NodeFactory.php 1 addition, 0 deletionstypo3/sysext/backend/Classes/Form/NodeFactory.php
- typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php 1 addition, 0 deletions...sysext/backend/Classes/Form/Utility/FormEngineUtility.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 2 additions, 1 deletiontypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/CategoryElement.js 13 additions, 0 deletions...s/Public/JavaScript/FormEngine/Element/CategoryElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/CategoryTreeElement.js 13 additions, 0 deletions...blic/JavaScript/FormEngine/Element/CategoryTreeElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/SelectTreeElement.js 1 addition, 21 deletions...Public/JavaScript/FormEngine/Element/SelectTreeElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngine/Element/SelectTreeToolbar.js 33 additions, 0 deletions...Public/JavaScript/FormEngine/Element/SelectTreeToolbar.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js 1 addition, 0 deletions...ckend/Resources/Public/JavaScript/FormEngineValidation.js
- typo3/sysext/backend/Tests/Functional/Form/Fixtures/CategoryRelations.csv 22 additions, 0 deletions...kend/Tests/Functional/Form/Fixtures/CategoryRelations.csv
Please register or sign in to comment