Uri.editRecord ViewHelper <be:uri.editRecord>

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

fields
Type
string
Edit only these fields (comma separated list)

returnUrl

returnUrl
Type
string
Default
''
return to this URL after closing the edit dialog

table

table
Type
string
Required
1
target database table

uid

uid
Type
int
Required
1
uid of record to be edited, 0 for creation