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¶

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' => [
[
'label' => 'Static values',
'value' => '--div--',
],
[
'label' => 'static -2',
'value' => -2,
],
[
'label' => 'static -1',
'value' => -1,
],
[
'label' => 'DB values',
'value' => '--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: ',
],
],
],
]