Feature #72270
closedForm name attribute with depth for complex use cases
0%
Description
I want to suggest this feature for tx_form to handle complex objects.
This requires a change to the handling of the name attribute of inputs.
The following should be possible:
FORM CONFIG:
prefix = tx_form ... 10 = TEXTLINE 10{ name = object.property.subproperty label { value = Vorname } } ...
HTML OUTPUT:
<input type="text" name="tx_form_form[tx_form][object][property][subproperty]" />
In the end this increases the versatility of tx_form, where complex forms could be handled by new/custom post processors.
The changes could could be made to:
- FormUtility->sanitizeNameAttribute(), where the . notation could be kept.
- HandleIncomingFormValues->handleIncomingFormValues, where the depth of the form values must be respected
- FormUtility/Element, could be extended to hold the full name, including prefix, for display accross all templates OR a ViewHelper for the name is added to all templates
Updated by Björn Jacob almost 8 years ago
- Status changed from New to Needs Feedback
- Assignee set to Philipp Rönsch
This feature will not make it into v7. In TYPO3 8 there is a new, improved version of form. Could you please check if your requirement can be achieved with v8?
Updated by Ralf Zimmermann almost 8 years ago
- Assignee changed from Philipp Rönsch to Björn Jacob
This feature is possible in V8.
The docs will show how this can be achieved.
So i think this ticket can be closed.
Updated by Björn Jacob almost 8 years ago
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Björn Jacob)
Awesome. I am closing this issue. As said, not possible in v7, included in v8. Well done.