foreign_selector¶
- foreign_selector¶
- Path
$GLOBALS['TCA'][$table]['columns'][$field]['config']
- Type
string
- Scope
Display / Proc.
A selector is used to show all possible child records that could be used to create a relation with the parent record. It will be rendered as a multi-select-box. On clicking on an item inside the selector a new relation is created. The
foreign_selector
points to a field of the foreign_table that is responsible for providing a selector-box – this field on theforeign_table
usually is of type select and also has aforeign_table
defined.In most cases you must assign the field
uid_local
to theforeign_selector
. This field name is used as a convention for the child record of the intermediate table. The automatic generation of MM tables also uses this field name. It depends whetheruid_local
of the MM table points to the opposite table (of the perspective of your inline field). In case of the opposite direction the field nameuid_foreign
is usually used.