editPopup

editPopup
Path

$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']

type

array

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
Path

$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']

type

boolean

Scope

fieldControl -> editPopup

Default

true

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

options[title]
Path

$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']

type

string

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]
Path

$GLOBALS['TCA'][$table]['columns'][$field]['config']['fieldControl']['editPopup']

type

string

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' => [
            'exclude' => 1,
            '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' => [
            'exclude' => 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!