[FEATURE] Introduce TCA type "json"
A new TCA type "json" is introduced, which allows to simplify the configuration when working with fields, containing JSON data. It replaces the previously introduced dbtype=json of TCA type "user" (see: #99226). FormEngine will display the JSON data using codemirror, in case EXT:t3editor is installed and enabled for the field. Otherwise, a standard textarea HTML element is used. Using the new type, corresponding database columns are added automatically. Resolves: #100088 Related: #99226 Releases: main Change-Id: I49ab049966a86696910a7c18a7c45be00c162ca7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77798 Tested-by:core-ci <typo3@b13.com> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/backend/form-engine/element/json-element.ts 45 additions, 0 deletions...es/TypeScript/backend/form-engine/element/json-element.ts
- Build/Sources/TypeScript/t3editor/element/code-mirror-element.ts 15 additions, 1 deletion...ources/TypeScript/t3editor/element/code-mirror-element.ts
- typo3/sysext/backend/Classes/Form/Element/JsonElement.php 247 additions, 0 deletionstypo3/sysext/backend/Classes/Form/Element/JsonElement.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaColumnsProcessPlaceholders.php 1 addition, 0 deletions...s/Form/FormDataProvider/TcaColumnsProcessPlaceholders.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/TcaJson.php 51 additions, 0 deletions.../sysext/backend/Classes/Form/FormDataProvider/TcaJson.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php 3 additions, 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/RecordList/DatabaseRecordList.php 2 additions, 0 deletions.../sysext/backend/Classes/RecordList/DatabaseRecordList.php
- typo3/sysext/backend/Classes/Search/LiveSearch/DatabaseRecordProvider.php 1 addition, 0 deletions...kend/Classes/Search/LiveSearch/DatabaseRecordProvider.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 20 additions, 18 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine/element/json-element.js 13 additions, 0 deletions...ces/Public/JavaScript/form-engine/element/json-element.js
- typo3/sysext/backend/Tests/Unit/Form/Element/JsonElementTest.php 118 additions, 0 deletions...ysext/backend/Tests/Unit/Form/Element/JsonElementTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaJsonTest.php 241 additions, 0 deletions.../backend/Tests/Unit/Form/FormDataProvider/TcaJsonTest.php
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 38 additions, 4 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Classes/DataHandling/TableColumnType.php 1 addition, 0 deletionstypo3/sysext/core/Classes/DataHandling/TableColumnType.php
- typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php 83 additions, 65 deletions.../sysext/core/Classes/Database/Schema/DefaultTcaSchema.php
- typo3/sysext/core/Classes/Resource/Search/QueryRestrictions/SearchTermRestriction.php 1 addition, 0 deletions...source/Search/QueryRestrictions/SearchTermRestriction.php
- typo3/sysext/core/Configuration/DefaultConfiguration.php 17 additions, 2 deletionstypo3/sysext/core/Configuration/DefaultConfiguration.php
Please register or sign in to comment