RenderAdditionalContentToRecordListEvent

New in version 11.0

This event supersedes the hooks

  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['recordlist/Modules/Recordlist/index.php']['drawHeaderHook']
  • $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['recordlist/Modules/Recordlist/index.php']['drawFooterHook']

The hooks are removed in TYPO3 v12.

Changed in version 12.0

Due to the integration of EXT:recordlist into EXT:backend the namespace of the event changed from \TYPO3\CMS\Recordlist\Event\RenderAdditionalContentToRecordListEvent to \TYPO3\CMS\Backend\Controller\Event\RenderAdditionalContentToRecordListEvent. For TYPO3 v12 the moved class is available as an alias under the old namespace to allow extensions to be compatible with TYPO3 v11 and v12.

The PSR-14 event \TYPO3\CMS\Backend\Controller\Event\RenderAdditionalContentToRecordListEvent allows to add content before or after the main content of the List module.

Example

API

class \TYPO3\CMS\Backend\Controller\Event\ RenderAdditionalContentToRecordListEvent

Add content above or below the main content of the record list

getRequest ( )
returntype

Psr\Http\Message\ServerRequestInterface

addContentAbove ( string $contentAbove)
param string $contentAbove

the contentAbove

addContentBelow ( string $contentBelow)
param string $contentBelow

the contentBelow

getAdditionalContentAbove ( )
returntype

string

getAdditionalContentBelow ( )
returntype

string