.. include:: /Includes.rst.txt
.. _feature-89644:
==========================================================================
Feature: #89644 - Add optional argument "fields" to editRecord ViewHelpers
==========================================================================
See :issue:`89644`
Description
===========
An optional argument "fields" is added to the :html:`uri.editRecord` and :html:`link.editRecord` 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 :html:`fields` argument to the backend route
`/record/edit` as :html:`columnsOnly` argument.
The functionality for :html:`columnsOnly` has always been there for the backend route
`/record/edit` even before this patch.
Example
=======
Create a link to edit the `tt_content.bodytext` field of record with uid 42:
.. code-block:: xml
Edit record
Output:
.. code-block:: html
Edit record
.. index:: Fluid, ext:backend