Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
Uri.editRecord ViewHelper <be:uri.editRecord>
Note
This ViewHelper is not available by default.
Import its namespace
{namespace be=TYPO3\ in the Fluid file or
xmlns: in the opening HTML tag.
Use this ViewHelper to provide edit links (only the uri) 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:uri.newRecord>.
Examples
URI to the record-edit action passed to FormEngine:
<be:uri.editRecord uid="42" table="a_table" returnUrl="foo/bar" />
/typo3/record/edit?edit[a_table][42]=edit&returnUrl=foo/bar
URI to the edit record action: edit only the fields title and subtitle of page uid=42 and return to foo/bar:
<be:uri.editRecord uid="42" table="pages" fields="title,subtitle" returnUrl="foo/bar" />
<a href="/typo3/record/edit&edit[pages][42]=edit&returnUrl=foo/bar&columnsOnly[pages]=title,subtitle">
Go to the source code of this ViewHelper: Uri\EditRecordViewHelper.php (GitHub).
Arguments
The following arguments are available for the uri.editRecord ViewHelper:
fields
-
- Type
- string
Edit only these fields (comma separated list)
returnUrl
-
- Type
- string
- Default
- ''
return to this URL after closing the edit dialog
table
-
- Type
- string
- Required
- 1
target database table
uid
-
- Type
- int
- Required
- 1
uid of record to be edited, 0 for creation