foreign_table_prefix¶
-
foreign_table_prefix
¶ -
- Type
- string or LLL reference
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- 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¶
[
'columns' => [
'select_single_3' => [
'exclude' => 1,
'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: ',
],
],
],
]
Copied!