listModule
-
- Type
- array
- TCA path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']
- Scope
- Display
- Types
- group
The list module control button opens the Content > Records module for only one table and allows the user to manipulate stuff there.
Note
The list module control is disabled by default, enable it if needed. It is shown below the
add recordcontrol if not changed bybeloworaftersettings.
Options
disabled
-
- Type
- boolean
- Default
- true
- TCA path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']['disabled']
- Scope
- Display
Disables the field control. Needs to be set to
falseto enable the Create new button
options[pid]
-
- Type
- string
- Default
- ###CURRENT_PID###
- TCA path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']['options']['pid']
- Scope
- Display
- Values
- marker or an integer
List records from this pid. Can be an hard pid setting, or one of these markers, see select foreign_table_where.
Falls back to "current pid" if not set, forces pid=0 if records of this table are only allowed on root level.
###CURRENT_PID### ###THIS_UID### ###SITEROOT###
options[table]
-
- Type
- string
- Default
- First table from property
allowed/foreign_table - TCA path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']['options']['table']
- Scope
- Display
- Values
- name of the table
List records of this table only, falls back to first table from allowed list if not set for
type='group'fields and to foreign_table fortype='select'fields.
options[title]
-
- Type
- string
- Default
LLL:core. core: labels. list - TCA path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['listModule']['options']['title']
- Scope
- Display
- Values
- plain text label or label reference
Allows to set a different 'title' attribute to the popup icon.
Examples
Select field
[
'columns' => [
'select_multiplesidebyside_6' => [
'label' => 'select_multiplesidebyside_6 fieldControl',
'config' => [
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_styleguide_staticdata',
'size' => 5,
'autoSizeMax' => 20,
'fieldControl' => [
'editPopup' => [
'disabled' => false,
'options' => [
'windowOpenParameters' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
],
],
'addRecord' => [
'disabled' => false,
],
'listModule' => [
'disabled' => false,
],
],
],
],
],
]
Group field
[
'columns' => [
'group_db_1' => [
'label' => 'group_db_1 allowed=be_users,be_groups description',
'description' => 'field description',
'config' => [
'type' => 'group',
'allowed' => 'be_users,be_groups',
'fieldControl' => [
'editPopup' => [
'disabled' => false,
],
'addRecord' => [
'disabled' => false,
],
'listModule' => [
'disabled' => false,
],
],
],
],
],
]