[TASK] EXT:form - move fixed template settings to configuration 05/52005/6
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sat, 11 Mar 2017 12:02:55 +0000 (13:02 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 17 Mar 2017 19:02:51 +0000 (20:02 +0100)
Move this fluid form VH attributes into the EXT:form
configuration

* f:form -> additionalParams
* f:form -> addQueryString
* f:form -> argumentsToBeExcludedFromQueryString
* f:form -> action
* f:form -> enctype
* f:form -> method

Resolves: #80236
Releases: master
Change-Id: Id820e06678ec18ea6013c451ab5f42458863adb3
Reviewed-on: https://review.typo3.org/52005
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Reviewed-by: Martin Kutschker <martin.kutschker@ymail.com>
Tested-by: Martin Kutschker <martin.kutschker@ymail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Documentation/Changelog/master/Task-80236-ExtFormConfigurationForFormVHAttributes.rst [new file with mode: 0644]
typo3/sysext/form/Configuration/Yaml/BaseSetup.yaml
typo3/sysext/form/Resources/Private/Frontend/Templates/Form.html

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Task-80236-ExtFormConfigurationForFormVHAttributes.rst b/typo3/sysext/core/Documentation/Changelog/master/Task-80236-ExtFormConfigurationForFormVHAttributes.rst
new file mode 100644 (file)
index 0000000..663c8c8
--- /dev/null
@@ -0,0 +1,55 @@
+.. include:: ../../Includes.txt
+
+============================================================
+TASK: #80236 - EXT:form Configuration for form VH attributes
+============================================================
+
+See :issue:`80236`
+
+Description
+===========
+
+Move some fixed configurations from within the fluid templates into the
+form settings
+
+* f:form -> additionalParams
+* f:form -> addQueryString
+* f:form -> argumentsToBeExcludedFromQueryString
+* f:form -> action
+* f:form -> enctype
+* f:form -> method
+
+within the EXT:Form configuration.
+
+.. code-block:: typoscript
+
+    TYPO3:
+        CMS:
+            Form:
+                prototypes:
+                    <prototypeName>:
+                        formElementsDefinition:
+                            Form:
+                                renderingOptions:
+                                    addQueryString: false
+                                    argumentsToBeExcludedFromQueryString: []
+                                    additionalParams: []
+                                    controllerAction: perform
+                                    httpMethod: post
+                                    httpEnctype: 'multipart/form-data'
+
+
+Impact
+======
+
+An integrator can configure the FLUID form properties
+
+f:form -> additionalParams
+f:form -> addQueryString
+f:form -> argumentsToBeExcludedFromQueryString
+f:form -> action
+f:form -> enctype
+f:form -> method
+
+
+.. index:: Frontend, ext:form
\ No newline at end of file
index 9b80ba9..c22d003 100644 (file)
@@ -27,6 +27,12 @@ TYPO3:
                   10: 'EXT:form/Resources/Private/Frontend/Partials/'
                 layoutRootPaths:
                   10: 'EXT:form/Resources/Private/Frontend/Layouts/'
+                addQueryString: false
+                argumentsToBeExcludedFromQueryString: []
+                additionalParams: []
+                controllerAction: perform
+                httpMethod: post
+                httpEnctype: 'multipart/form-data'
 
                 honeypot:
                   enable: true
index 9d7d8ec..c741c72 100644 (file)
@@ -1,5 +1,15 @@
 <formvh:renderRenderable renderable="{form}">
-    <formvh:form object="{form}" action="perform" method="post" id="{form.identifier}" section="{form.identifier}" enctype="multipart/form-data">
+    <formvh:form
+        object="{form}"
+        action="{form.renderingOptions.controllerAction}"
+        method="{form.renderingOptions.httpMethod}"
+        id="{form.identifier}"
+        section="{form.identifier}"
+        enctype="{form.renderingOptions.httpEnctype}"
+        addQueryString="{form.renderingOptions.addQueryString}"
+        argumentsToBeExcludedFromQueryString="{form.renderingOptions.argumentsToBeExcludedFromQueryString}"
+        additionalParams="{form.renderingOptions.additionalParams}"
+    >
         <f:render partial="{form.currentPage.templateName}" arguments="{page: form.currentPage}" />
 
         <div class="actions">