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 RenderAdditionalContentToRecordListEvent
Fully qualified name
\TYPO3\CMS\Backend\Controller\Event\RenderAdditionalContentToRecordListEvent

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

getRequest ( )
Returns
PsrHttpMessageServerRequestInterface
addContentAbove ( string $contentAbove)
param $contentAbove

the contentAbove

addContentBelow ( string $contentBelow)
param $contentBelow

the contentBelow

getAdditionalContentAbove ( )
Returns
string
getAdditionalContentBelow ( )
Returns
string