foreign_table_prefix

foreign_table_prefix
Path

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

Type

string or LLL reference

Scope

Display

RenderType

all

Label prefix to the title of the records from the foreign-table.

Examples

Select single field with foreign_prefix and foreign_where

../../../../_images/SelectSingle3.png
EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php
[
    'columns' => [
        'select_single_3' => [
            'label' => 'select_single_3 static values, dividers, foreign_table_where',
            'config' => [
                'type' => 'select',
                'renderType' => 'selectSingle',
                'items' => [
                    [
                        'Static values',
                        '--div--',
                    ],
                    [
                        'static -2',
                        -2,
                    ],
                    [
                        'static -1',
                        -1,
                    ],
                    [
                        'DB values',
                        '--div--',
                    ],
                ],
                'foreign_table' => 'tx_styleguide_staticdata',
                'foreign_table_where' => 'AND {#tx_styleguide_staticdata}.{#value_1} LIKE \'%foo%\' ORDER BY uid',
                'foreign_table_prefix' => 'A prefix: ',
            ],
        ],
    ],
]