Feature #3717

"Designators" for Form view helper

Added by Bastian Waidelich over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
ViewHelpers
Target version:
-
Start date:
2009-06-22
Due date:
% Done:

90%

Estimated time:
Has patch:

Description

  • FormViewHelper needs a new argument "designator" / "namespace"
  • Extbase will set the default value for this argument to "tx_extensionname_pluginname"
  • All Form view helpers inside a form will inherit this namespace

so:

<f:form>
    <f:form.textbox name="firstName" />
</f:form>

gets
<form action="...">
    <input type="text" name="tx_extensionname_pluginname[firstName]" value="" />
</form>

and
<f:form object="{customer}">
    <f:form.textbox property="firstName" />
    <f:form.textbox name="foo" />
</f:form>

gets
<form action="...">
    <input type="hidden" name="tx_extensionname_pluginname[customer][uid]" value="123" />
    <input type="text" name="tx_extensionname_pluginname[customer][firstName]" value="Kasper" />
    <input type="text" name="tx_extensionname_pluginname[foo]" value="" />
</form>

and finally
<f:form object="{customer}" namespace="tx_ttnews">
    <f:form.textbox property="firstName" />
    <f:form.textbox name="foo" />
</f:form>

gets
<form action="...">
    <input type="hidden" name="tx_ttnews[customer][uid]" value="123" />
    <input type="text" name="tx_ttnews[customer][firstName]" value="Kasper" />
    <input type="text" name="tx_ttnews[foo]" value="" />
</form>

Problem: namespace/designator can't be set to "" because then the default value would be used.. So it wouldn't be possible to output:

<input type="text" name="id" value="123" />


Related issues

Related to TYPO3.Fluid - Feature #1907: Default values for view helpers based on contextNew2008-10-29

Actions
#1

Updated by Bastian Waidelich over 12 years ago

  • Assignee set to Bastian Waidelich
  • % Done changed from 0 to 90
#2

Updated by Bastian Waidelich about 12 years ago

  • Status changed from New to Resolved

This is already implemented.
In FLOW3 the "designator" is not used by default yet.

Also available in: Atom PDF