‪TYPO3CMS  10.4
TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper:
TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper

Public Member Functions

 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 initializeArguments ()
 
string render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper
ModuleTemplate getModuleTemplate ()
 
PageRenderer getPageRenderer ()
 

Protected Attributes

bool $escapeOutput = false
 
TYPO3 CMS Extbase Configuration ConfigurationManagerInterface $configurationManager
 

Detailed Description

ViewHelper which renders a record list as known from the TYPO3 list module.

.. note:: This feature is experimental!

Examples

Minimal::

<f:be.tableList tableName="fe_users" />

List of all "Website user" records stored in the configured storage PID. Records will be editable, if the current backend user has got edit rights for the table fe_users.

Only the title column (username) will be shown.

Context menu is active.

Full::

<f:be.tableList tableName="fe_users" fieldList="{0: 'name', 1: 'email'}" storagePid="1" levels="2" filter="foo" recordsPerPage="10" sortField="name" sortDescending="true" readOnly="true" enableClickMenu="false" enableControlPanels="true" clickTitleMode="info" />

List of "Website user" records with a text property of foo stored on PID 1 and two levels down. Clicking on a username will open the TYPO3 info popup for the respective record

Definition at line 62 of file TableListViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper::initializeArguments ( )

Initialize arguments.

Exceptions

Definition at line 87 of file TableListViewHelper.php.

◆ injectConfigurationManager()

TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper::injectConfigurationManager ( ConfigurationManagerInterface  $configurationManager)
Parameters
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface$configurationManager

Definition at line 77 of file TableListViewHelper.php.

References TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper\$configurationManager.

◆ render()

string TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper::render ( )

Renders a record list as known from the TYPO3 list module Note: This feature is experimental!

Returns
‪string the rendered record list
See also
‪\TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList

Definition at line 111 of file TableListViewHelper.php.

References $GLOBALS, TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface\CONFIGURATION_TYPE_FRAMEWORK, TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper\getPageRenderer(), TYPO3\CMS\Core\Page\PageRenderer\loadRequireJsModule(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW, and TYPO3\CMS\Backend\Utility\BackendUtility\readPageAccess().

Member Data Documentation

◆ $configurationManager

TYPO3 CMS Extbase Configuration ConfigurationManagerInterface TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper::$configurationManager
protected

◆ $escapeOutput

bool TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper::$escapeOutput = false
protected

As this ViewHelper renders HTML, the output must not be escaped.

Definition at line 68 of file TableListViewHelper.php.