EditRecordViewHelper extends AbstractTagBasedViewHelper

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <backend:link.editrecord>

FinalYes

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 record

Link 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 record

Table of Contents

Properties

$tagName  : string

Methods

initializeArguments()  : void
render()  : string

Properties

Methods

initializeArguments()

public initializeArguments() : void

        
On this page

Search results