Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
foreign_selector
foreign_selector
-
- Type
- string
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- 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_
points to a field of the foreign_table that is responsible for providing a selector-box – this field on theselector foreign_
usually is of type select and also has atable foreign_
defined.table In most cases you must assign the field
uid_
to thelocal foreign_
. 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 whetherselector uid_
of the MM table points to the opposite table (of the perspective of your inline field). In case of the opposite direction the field namelocal uid_
is usually used.foreign