Feature #57763

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

Added by Kay Strobach over 1 year ago. Updated over 1 year ago.

Status:New Start date:2014-04-09
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
PHP Version: Complexity:
Has patch:No

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.

History

#1 Updated by Kay Strobach over 1 year 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 1 year ago

  • Status changed from New to Needs Feedback
  • Assigned To 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

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

#3 Updated by Kay Strobach over 1 year ago

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

#4 Updated by Bastian Waidelich over 1 year ago

  • Status changed from Needs Feedback to New
  • Assigned To 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