[TASK] EXT:form - remove unused url parameters 94/43894/4
authorBjörn Jacob <bjoern.jacob@tritum.de>
Thu, 8 Oct 2015 20:06:52 +0000 (22:06 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 8 Oct 2015 20:35:27 +0000 (22:35 +0200)
Set the url parameter "format" only if is set in the configuration
and skip the default extbase arguments.

Resolves: #70474
Releases: master
Change-Id: Ia8cdc3f75725da41c8ef5701cec864a39a0f3d35
Reviewed-on: http://review.typo3.org/43894
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Configuration/TypoScript/setup.txt
typo3/sysext/form/Resources/Private/Partials/Compatibility/Confirmation/ContainerElements/Form.html
typo3/sysext/form/Resources/Private/Partials/Compatibility/Show/ContainerElements/Form.html
typo3/sysext/form/Resources/Private/Partials/Default/Confirmation/ContainerElements/Form.html
typo3/sysext/form/Resources/Private/Partials/Default/Show/ContainerElements/Form.html

index ff3a833..a95d395 100644 (file)
@@ -20,6 +20,10 @@ tt_content.mailform.20 {
 <INCLUDE_TYPOSCRIPT: source="DIR: EXT:form/Configuration/TypoScript/Validators" extensions="ts">
 
 plugin.tx_form {
+       features {
+               skipDefaultArguments = 1
+       }
+
        view {
                templateRootPaths {
                        10 = {$plugin.tx_form.view.templateRootPath}
index 57a5817..7b3a839 100644 (file)
@@ -26,7 +26,7 @@
        controller="Frontend"
        extensionName="Form"
 
-       format="{model.additionalArguments.format}"
+       format="{f:if(condition:'{model.additionalArguments.format}',then:'{model.additionalArguments.format}')}"
        hiddenFieldClassName="{model.additionalArguments.hiddenFieldClassName}"
 
        object="{model}"
index 305e6e1..0492b45 100644 (file)
        additionalParams="{model.additionalArguments.additionalParams}"
        arguments="{model.additionalArguments.arguments}"
        argumentsToBeExcludedFromQueryString="{model.additionalArguments.argumentsToBeExcludedFromQueryString}"
-       controller="Frontend"
-       extensionName="Form"
+       controller="{model.additionalArguments.controller}"
+       extensionName="{model.additionalArguments.extensionName}"
 
-       format="{model.additionalArguments.format}"
+       format="{f:if(condition:'{model.additionalArguments.format}',then:'{model.additionalArguments.format}')}"
        hiddenFieldClassName="{model.additionalArguments.hiddenFieldClassName}"
 
        object="{model}"
 
        pageType="{model.additionalArguments.pageType}"
        pageUid="{model.additionalArguments.pageUid}"
-       pluginName="Form"
+       pluginName="{model.additionalArguments.pluginName}"
        section="{model.additionalArguments.section}">
 
        <f:format.raw>{model.layout.containerInnerWrap.0}</f:format.raw>
index a2afdef..b3fb213 100644 (file)
@@ -26,7 +26,7 @@
        controller="Frontend"
        extensionName="Form"
 
-       format="{model.additionalArguments.format}"
+       format="{f:if(condition:'{model.additionalArguments.format}',then:'{model.additionalArguments.format}')}"
        hiddenFieldClassName="{model.additionalArguments.hiddenFieldClassName}"
 
        object="{model}"
index 0402bc2..fff6fb5 100644 (file)
        additionalParams="{model.additionalArguments.additionalParams}"
        arguments="{model.additionalArguments.arguments}"
        argumentsToBeExcludedFromQueryString="{model.additionalArguments.argumentsToBeExcludedFromQueryString}"
-       controller="Frontend"
-       extensionName="Form"
+       controller="{model.additionalArguments.controller}"
+       extensionName="{model.additionalArguments.extensionName}"
 
-       format="{model.additionalArguments.format}"
+       format="{f:if(condition:'{model.additionalArguments.format}',then:'{model.additionalArguments.format}')}"
        hiddenFieldClassName="{model.additionalArguments.hiddenFieldClassName}"
 
        object="{model}"
 
        pageType="{model.additionalArguments.pageType}"
        pageUid="{model.additionalArguments.pageUid}"
-       pluginName="Form"
+       pluginName="{model.additionalArguments.pluginName}"
        section="{model.additionalArguments.section}">
 
        <ol>