Feature: #89644 - Add optional argument "fields" to editRecord ViewHelpers
See forge#89644
Description
An optional argument "fields" is added to the uri.
and link.
ViewHelper.
This can contain the names of one or more database fields (comma separated).
If the argument "fields" is set, FormEngine creates a form to edit only these fields.
Impact
This ViewHelper passes the value given in the fields
argument to the backend route
/record/
as columns
argument.
The functionality for columns
has always been there for the backend route
/record/
even before this patch.
Example
Create a link to edit the tt_
field of record with uid 42:
<be:link.editRecord uid="42" table="tt_content" fields="bodytext" returnUrl="foo/bar">
Edit record
</be:link.editRecord>
Copied!
Output:
<a href="/typo3/index.php?route=/record/edit&edit[tt_content][42]=edit&returnUrl=foo/bar&columnsOnly=bodytext">
Edit record
</a>
Copied!