Language fields
New in version 13.0
When using the language
type, TYPO3 takes care of
generating the according database field.
A developer does not need to define this field in an extension's
ext_
file.
Changed in version 13.3
The TCA column sys_
will be created automatically if the
setting languageField was made in the original TCA
definition. See also Auto-created columns from 'ctrl';
This field type displays all languages available in the current site context. Outside of the site context it displays all languages available in the installation.
A special language All languages is automatically added.
The according database field is generated automatically.
<?php
$GLOBALS['TCA'][$someTable]['columns'][$someLanguageField] = [
'label' => 'Some language field',
'config' => [
'type' => 'language',
],
];