EditRecordViewHelper extends AbstractTagBasedViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <backend:link.editrecord>
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 :ref:<be:link.newRecordViewHelper> <typo3-backend-link-newrecord>.
Examples
Link to the record-edit action passed to FormEngine::
<be:link.editRecord uid="42" table="a_table" returnUrl="foo/bar" />
Output::
Edit recordLink to edit page uid=3 and then return back to the BE module "web_MyextensionList"::
<be:link.editRecord uid="3" table="pages" returnUrl="{f:be.uri(route: 'web_MyextensionList')}">
Link to edit only the fields title and subtitle of page uid=42 and return to foo/bar::
<be:link.editRecord uid="42" table="pages" fields="title,subtitle" returnUrl="foo/bar"> Edit record </be:link.editRecord>
Output::
Edit recordOpen the record in the contextual editing overlay::
<be:link.editRecord uid="42" table="pages" fields="title,subtitle" contextual="true"> Edit page properties </be:link.editRecord>
Output::
<typo3-backend-contextual-record-edit-trigger url="/typo3/record/edit/contextual?edit[pages][42]=edit&columnsOnly[pages][0]=title&columnsOnly[pages][1]=subtitle" edit-url="/typo3/record/edit?edit[pages][42]=edit&columnsOnly[pages][0]=title&columnsOnly[pages][1]=subtitle"
Edit page properties
Tags
Table of Contents
Properties
- $tagName : string
Methods
- __construct() : mixed
- initializeArguments() : void
- render() : string
Properties
$tagName
protected
string
$tagName
= 'a'
Methods
__construct()
public
__construct(UriBuilder $uriBuilder, PageRenderer $pageRenderer) : mixed
Parameters
- $uriBuilder : UriBuilder
- $pageRenderer : PageRenderer
initializeArguments()
public
initializeArguments() : void
render()
public
render() : string