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

Open 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
see
https://docs.typo3.org/permalink/t3viewhelper:typo3-backend-link-editrecord

Table of Contents

Properties

$tagName  : string

Methods

__construct()  : mixed
initializeArguments()  : void
render()  : string

Properties

Methods

initializeArguments()

public initializeArguments() : void
On this page

Search results