Backend display (interface)

The interface section contains configuration for display and listing in various parts of the backend. It is optional to use.

Examples: Limit items in record list

Limit items in backend list to 30 in overview, 50 in single table view:

EXT:my_extension/Configuration/TCA/Overrides/tx_myextension_mytable.php
<?php

$GLOBALS['TCA']['tx_myextension_mytable'] = array_merge_recursive(
    $GLOBALS['TCA']['tx_myextension_mytable'],
    [
        'interface' => [
            'maxDBListItems' => 30,
            'maxSingleDBListItems' => 50,
        ],
    ]
);
Copied!

Properties of TCA section interface

Name Type Default
integer 20
integer 100

maxDBListItems

maxDBListItems
Type
integer
Path
$GLOBALS['TCA'][$table]['interface']
Default
20

Maximum number of items shown in the List module.

maxSingleDBListItems

maxSingleDBListItems
Type
integer
Path
$GLOBALS['TCA'][$table]['interface']
Default
100

Maximum number of items shown in the List module, if this table is listed in extended mode (listing only a single table).