[!!!][TASK] Improve flex and TCA handling in FormEngine
The patch adapts a series of nasty form engine areas to more solid code. The evaluate condition code is rewritten and works much better in flex form scenarios. The suggest wizard and svg tree are much more solid in flex forms. The group element is rewritten towards a better readable and easier to refactor code, dropping method dbFileIcons(). A bunch of issues is resolved along the way. * TCA "default" now works in flex form section container elements * The "displayCond" parser is now strict and throws exceptions on invalid syntax and wrong referenced fields to help debugging faulty display conditions * TCA displayCond on flex fields can now be prefixed with the sheet name and can reference field values from neighbor sheets * TCA displayCond now works with flex section containers * TCA flex section container now throw an exception if select or group fields configure a MM relation - this is not supported * TCA ctrl requestUpdate field is dropped, onChange=reload is now allowed not only on flex form fields, but also on normal columns fields * TCA tree now works as section container element and initializes correctly on new records and new containers * GroupElement rewrite to drop dbFileIcons() * config option maxitems now optional for type=group and type=select and defaults to "many items allowed" * inline now works in "fancy" flex situations with "new" records by handing the final dataStructureIdentifier around * FormEngine no longer loads extJS Change-Id: Id1d081627529cc1502bb198389e5bd69372815cd Resolves: #78899 Resolves: #72307 Resolves: #75646 Resolves: #76637 Resolves: #72106 Resolves: #78824 Resolves: #76793 Resolves: #68247 Resolves: #69715 Related: #78460 Related: #67198 Related: #72294 Releases: master Reviewed-on: https://review.typo3.org/50879 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/backend/Classes/Controller/FormFlexAjaxController.php 163 additions, 0 deletions...ext/backend/Classes/Controller/FormFlexAjaxController.php
- typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php 36 additions, 27 deletions...t/backend/Classes/Controller/FormInlineAjaxController.php
- typo3/sysext/backend/Classes/Controller/FormSelectTreeAjaxController.php 186 additions, 0 deletions...ckend/Classes/Controller/FormSelectTreeAjaxController.php
- typo3/sysext/backend/Classes/Controller/Wizard/SuggestWizardController.php 47 additions, 98 deletions...end/Classes/Controller/Wizard/SuggestWizardController.php
- typo3/sysext/backend/Classes/Form/AbstractNode.php 6 additions, 15 deletionstypo3/sysext/backend/Classes/Form/AbstractNode.php
- typo3/sysext/backend/Classes/Form/Container/FlexFormContainerContainer.php 17 additions, 15 deletions...end/Classes/Form/Container/FlexFormContainerContainer.php
- typo3/sysext/backend/Classes/Form/Container/FlexFormElementContainer.php 19 additions, 16 deletions...ckend/Classes/Form/Container/FlexFormElementContainer.php
- typo3/sysext/backend/Classes/Form/Container/FlexFormEntryContainer.php 2 additions, 0 deletions...backend/Classes/Form/Container/FlexFormEntryContainer.php
- typo3/sysext/backend/Classes/Form/Container/FlexFormNoTabsContainer.php 1 addition, 1 deletion...ackend/Classes/Form/Container/FlexFormNoTabsContainer.php
- typo3/sysext/backend/Classes/Form/Container/FlexFormSectionContainer.php 50 additions, 104 deletions...ckend/Classes/Form/Container/FlexFormSectionContainer.php
- typo3/sysext/backend/Classes/Form/Container/FlexFormTabsContainer.php 1 addition, 0 deletions.../backend/Classes/Form/Container/FlexFormTabsContainer.php
- typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php 2 additions, 6 deletions...backend/Classes/Form/Container/InlineControlContainer.php
- typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php 10 additions, 10 deletions.../backend/Classes/Form/Container/InlineRecordContainer.php
- typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php 18 additions, 17 deletions...t/backend/Classes/Form/Container/SingleFieldContainer.php
- typo3/sysext/backend/Classes/Form/DatabaseFileIconsHookInterface.php 2 additions, 0 deletions...t/backend/Classes/Form/DatabaseFileIconsHookInterface.php
- typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php 1 addition, 410 deletions...sext/backend/Classes/Form/Element/AbstractFormElement.php
- typo3/sysext/backend/Classes/Form/Element/GroupElement.php 446 additions, 258 deletionstypo3/sysext/backend/Classes/Form/Element/GroupElement.php
- typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php 4 additions, 9 deletions...backend/Classes/Form/Element/ImageManipulationElement.php
- typo3/sysext/backend/Classes/Form/Element/InputColorPickerElement.php 1 addition, 1 deletion.../backend/Classes/Form/Element/InputColorPickerElement.php
- typo3/sysext/backend/Classes/Form/Element/InputTextElement.php 1 addition, 1 deletion.../sysext/backend/Classes/Form/Element/InputTextElement.php
Please register or sign in to comment