Feature #57763

Allow controller / package / action as params in \TYPO3\Fluid\ViewHelpers\Form\ButtonViewHelper

Added by Kay Strobach over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-04-09
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

formaction is already there in flow button viewHelper, but you can’t easily use package + controller + action to send the form.
So we need to add a way to calculate the formaction, formenctype formmethod and these things automatically.

#1

Updated by Kay Strobach over 7 years ago

most of the logik can IMHO be taken from TYPO3.Fluid/Classes/TYPO3/Fluid/ViewHelpers/Link/ActionViewHelper.php
the form properties should be taken from the form

#2

Updated by Bastian Waidelich over 7 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Bastian Waidelich

Kay Strobach wrote:

Hi Kay,

formaction is already there in flow button viewHelper, but you can’t easily use package + controller + action to send the form.

What about

<f:form.textfield formaction="{f:uri.action(action: 'foo')}" />

#3

Updated by Kay Strobach over 7 years ago

know that, but why not supporting it nativly? - it's easier to read then ...

#4

Updated by Bastian Waidelich over 7 years ago

  • Status changed from Needs Feedback to New
  • Assignee deleted (Bastian Waidelich)

Kay Strobach wrote:

know that, but why not supporting it nativly? - it's easier to read then ...

Mh, IMO it's not worth adding complexity. But if someone wants to provide a patch and people think it's useful I'm the last to stop it ;)

Also available in: Atom PDF