---
title: "Link.editRecord ViewHelper <be:link.editRecord>"
manual: "Fluid ViewHelper Reference"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-backend-link-editrecord@main"
source: "Backend/Link/EditRecord.rst"
rendered: "2026-09-27T06:54:49+00:00"
---

# Link.editRecord ViewHelper `<be:link.editRecord>` {#typo3-backend-link-editrecord}

<!-- TODO: no Markdown rendering for "versionadded" -->

Argument module
has been added to explicitly define the backend module context used when
opening the FormEngine to edit or create a record.

> [!NOTE]
> This ViewHelper is not available by default.
>
> [Import its namespace](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Fluid/UsingFluidInTypo3.html#fluid-syntax-viewhelpers-import-namespaces)
> `{namespace be=TYPO3\CMS\Backend\ViewHelpers\}` in the Fluid file or
> `xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers/"` in the opening HTML tag.

Use this ViewHelper to provide edit links to records. The ViewHelper will
pass the uid and table to FormEngine.

The uid must be given as a positive integer.
For new records, use the [\<be:link.newRecordViewHelper>](https://docs.typo3.org/permalink/t3viewhelper:typo3-backend-link-newrecord@main).

Go to the source code of this ViewHelper: [Link\\EditRecordViewHelper.php (GitHub)](https://github.com/TYPO3/typo3/blob/main/typo3/sysext/backend/Classes/ViewHelpers/Link/EditRecordViewHelper.php).

## Arguments of the `<be:link.editRecord>` ViewHelper {#typo3-backend-link-editrecord-arguments}

> **Allows arbitrary arguments**
>
> This ViewHelper allows you to pass arbitrary arguments not defined below
> directly to the HTML tag created. This includes custom `data-` arguments.

-   **additionalAttributes**

    -   *Type:* array

    Additional tag attributes. They will be added directly to the resulting HTML tag.

-   **aria**

    -   *Type:* array

    Additional aria-\* attributes. They will each be added with a "aria-" prefix.

-   **contextual**

    -   *Type:* bool
    -   *Default:* false

    Render a contextual edit trigger instead of a classic edit link

-   **data**

    -   *Type:* array

    Additional data-\* attributes. They will each be added with a "data-" prefix.

-   **fields**

    -   *Type:* string

    Edit only these fields (comma separated list)

-   **module**

    -   *Type:* string
    -   *Default:* ''

    Set module identifier for context - marking as active when editing the record

-   **returnUrl**

    -   *Type:* string
    -   *Default:* ''

    return to this URL after closing the edit dialog

-   **table**

    -   *Type:* string
    -   *Required:* true

    target database table

-   **uid**

    -   *Type:* int
    -   *Required:* true

    uid of record to be edited
