uri.editRecord ViewHelper <backend:uri.editRecord>
¶
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" />
Copied!
/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" />
Copied!
<a href="/typo3/record/edit&edit[pages][42]=edit&returnUrl=foo/bar&columnsOnly=title,subtitle">
Arguments¶
uid¶
- DataType
- mixed
- Required
- true
- Description
- Uid of record to be edited, 0 for creation
table¶
- DataType
- string
- Required
- true
- Description
- Target database table
fields¶
- DataType
- string
- Required
- false
- Description
- Edit only these fields (comma separated list)
returnUrl¶
- DataType
- string
- Required
- false
- Description
- Return to this URL after closing the edit dialog