Uri.editRecord ViewHelper <be:uri.editRecord>
New in version 14.0
Argument module has been added to explicitly define the backend module context used when opening the FormEngine to edit or create a record.
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 <be:uri.newRecord>.
<be:uri.editRecord uid="42" table="pages" fields="title,subtitle" returnUrl="foo/bar" />
Copied!
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)
module
-
- Type
- string
- Default
- ''
Set module identifier for context - marking as acitve when editing the record
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