editPopup

editPopup

editPopup
Type
array
Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']
Scope
fieldControl
Types
group

The edit popup field control shows a pencil icon to edit an element directly in a popup window. When a record is selected and the edit button is clicked, that record opens in a new window for modification.

Options

disabled

disabled
Type
boolean
Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']
Scope
fieldControl -> editPopup
Default
true

Disables the field control. Needs to be set to false to enable the Create new button

options[title]

options[title]
Type
string
Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']
Scope
fieldControl -> editPopup
Values
string or LLL reference
Default
LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.edit

Allows to set a different 'title' attribute to the popup icon.

options[windowOpenParameters]

options[windowOpenParameters]
Type
string
Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']
Scope
fieldControl -> editPopup
Values
string or LLL reference
Default
height=800,width=600,status=0,menubar=0,scrollbars=1

Allows to set a different size of the popup, defaults

Examples

Select field

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php
[
    '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,
                    ],
                ],
            ],
        ],
    ],
]
Copied!

Group field

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_group.php
[
    '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,
                    ],
                ],
            ],
        ],
    ],
]
Copied!