Project

General

Profile

Actions

Bug #79315

closed

Epic #77909: Enhance EXT:form

Feature #77910: Introduce new form framework

EXT:form - reset templatePathAndFilename if needed

Added by Ralf Zimmermann over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Category:
Form Framework
Target version:
-
Start date:
2017-01-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Each formelement template will be searched by its element name within the configured fluid "templateRootPaths".
It is also possible to define a concrete template file using the form element configuration "renderingOptions.templatePathAndFilename".
The TYPO3\CMS\Form\Mvc\View\FormView has to reset this configuration if a previous rendered form element has set this "templatePathAndFilename" within fluid's "TemplatePaths" class.
Otherwise the current rendered formelement want to use the templatePathAndFilename instead of the "templateRootPaths".

Use this example to test this behavior
https://code.tritum.de/TYPO3.CMS/ext_form_example1484320188

This example provide a predefined form definition called "Custom base elements".
Install this Extension, include the statics, create a nee "Form" Contentelement and select this form.
This form show you 2 form elements.
The first one is configured to use a concrete template ('EXT:form/Resources/Private/Frontend/Templates/FormElements/RadioButton.html'), the second one has to find its template by the default behavior (search a template called "Text" within the "templateRootPaths")

Without this patch the "TemplatePaths" keep the "templatePathAndFilename = "EXT:form/Resources/Private/Frontend/Templates/FormElements/RadioButton.html" property from the first element and try to apply this to the second element, which is wrong. The second element will not be shown.


Related issues 1 (0 open1 closed)

Blocks TYPO3 Core - Task #78821: Ext:form - Add onSubmit callback for pagesClosedRalf Zimmermann2016-11-28

Actions
Actions #1

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51307

Actions #2

Updated by Ralf Zimmermann over 7 years ago

  • Description updated (diff)
Actions #3

Updated by Ralf Zimmermann about 7 years ago

  • Description updated (diff)
Actions #4

Updated by Björn Jacob about 7 years ago

  • Parent task set to #77910
Actions #5

Updated by Ralf Zimmermann about 7 years ago

  • Status changed from Under Review to Closed
Actions

Also available in: Atom PDF