[FEATURE] Introduce conditional variants for form elements
Variants allow you to change properties of a form element. Variants can contain conditions. If a concrete condition is TRUE the variant is applied. If no condition exists the variant will be ignored. Variants make it possible to manipulate form element values, validator options, and finisher options based on conditions. This allows you among other things: * translation of form element values depending on the frontend language * set and remove validators of one form element depending on the value of another form element * hide entire pages depending on the value of a form element * set finisher values depending on the value of a form element * hiding a form element in certain finishers and on the summary page This feature implements variants for the frontend rendering and the ability to define variants in the formDefinition. The implementation to define variants in the form editor is out of scope of this patchset. Releases: master Resolves: #84133 Change-Id: I9efeeea5af67df2d2f9252339c26baf8a03cf9c8 Reviewed-on: https://review.typo3.org/54982 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Björn Jacob <bjoern.jacob@tritum.de> Tested-by:
Björn Jacob <bjoern.jacob@tritum.de> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- composer.json 1 addition, 0 deletionscomposer.json
- composer.lock 214 additions, 1 deletioncomposer.lock
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-84133-Deprecate_isHiddenFormElementAnd_isReadOnlyFormElement.rst 42 additions, 0 deletions...eprecate_isHiddenFormElementAnd_isReadOnlyFormElement.rst
- typo3/sysext/core/Documentation/Changelog/master/Feature-84133-IntroduceVariants.rst 490 additions, 0 deletions...tion/Changelog/master/Feature-84133-IntroduceVariants.rst
- typo3/sysext/form/Classes/Controller/FormEditorController.php 35 additions, 0 deletions...3/sysext/form/Classes/Controller/FormEditorController.php
- typo3/sysext/form/Classes/Domain/Condition/ConditionContext.php 136 additions, 0 deletions...sysext/form/Classes/Domain/Condition/ConditionContext.php
- typo3/sysext/form/Classes/Domain/Condition/ConditionResolver.php 62 additions, 0 deletions...ysext/form/Classes/Domain/Condition/ConditionResolver.php
- typo3/sysext/form/Classes/Domain/Condition/ExpressionLanguageVariableProviderInterface.php 41 additions, 0 deletions...Condition/ExpressionLanguageVariableProviderInterface.php
- typo3/sysext/form/Classes/Domain/Model/FormDefinition.php 29 additions, 3 deletionstypo3/sysext/form/Classes/Domain/Model/FormDefinition.php
- typo3/sysext/form/Classes/Domain/Model/Renderable/AbstractRenderable.php 77 additions, 3 deletions...rm/Classes/Domain/Model/Renderable/AbstractRenderable.php
- typo3/sysext/form/Classes/Domain/Model/Renderable/RenderableVariant.php 118 additions, 0 deletions...orm/Classes/Domain/Model/Renderable/RenderableVariant.php
- typo3/sysext/form/Classes/Domain/Model/Renderable/RenderableVariantInterface.php 49 additions, 0 deletions...es/Domain/Model/Renderable/RenderableVariantInterface.php
- typo3/sysext/form/Classes/Domain/Model/Renderable/VariableRenderableInterface.php 53 additions, 0 deletions...s/Domain/Model/Renderable/VariableRenderableInterface.php
- typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php 149 additions, 4 deletionstypo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php
- typo3/sysext/form/Classes/ViewHelpers/RenderAllFormValuesViewHelper.php 11 additions, 2 deletions...orm/Classes/ViewHelpers/RenderAllFormValuesViewHelper.php
- typo3/sysext/form/Configuration/Yaml/BaseSetup.yaml 18 additions, 6 deletionstypo3/sysext/form/Configuration/Yaml/BaseSetup.yaml
- typo3/sysext/form/Documentation/Config/configuration/Index.rst 0 additions, 8 deletions.../sysext/form/Documentation/Config/configuration/Index.rst
- typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/ContentElement.rst 0 additions, 3 deletions...ig/proto/formElements/formElementTypes/ContentElement.rst
- typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/ContentElement/renderingOptions/_isReadOnlyFormElement.rst 0 additions, 32 deletions...ontentElement/renderingOptions/_isReadOnlyFormElement.rst
- typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Hidden.rst 0 additions, 3 deletions...ion/Config/proto/formElements/formElementTypes/Hidden.rst
Please register or sign in to comment