foreign_table¶
-
foreign_table
¶ Type: string (table name) Scope: Proc. / Display RenderType: all The item-array will be filled with records from the table defined here. The table must have a TCA definition.
Examples¶
Select singe field with enabled selectIcons¶
'select_single_12' => [
'exclude' => 1,
'label' => 'select_single_12 foreign_table selicon_field',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_styleguide_elements_select_single_12_foreign',
'fieldWizard' => [
'selectIcons' => [
'disabled' => false,
],
],
],
],
// Example from extension "styleguide", table "tx_styleguide_elements_select"
Select field with foreign table via MM table¶
'select_single_15' => [
'exclude' => 1,
'label' => 'select_single_15 foreign_table',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_styleguide_staticdata',
'MM' => 'tx_styleguide_elements_select_single_15_mm',
],
],
// Example from extension "styleguide", table "tx_styleguide_elements_select"