transOrigPointerField¶
- transOrigPointerField¶
- Path
$GLOBALS['TCA'][$table]['ctrl']
- type
string (field name)
- Scope
Proc. / Display
Name of the field, by convention l10n_parent, used by translations to point back to the original record, the record in the default language of which they are a translation.
If this value is found being set together with languageField then FormEngine will show the default translation value under the fields in the main form. This is very neat if translators are to see what they are translating.
The target field must be configured in
$GLOBALS['TCA'][<table>]['columns']
, at least as a passthrough type.Note
Sometimes
l18n_parent
is used for this field in Core tables. This is for historic reasons.
Example¶

EXT:my_extension/Configuration/TCA/tx_myextension_domain_model_something.php¶
<?php
return [
'ctrl' => [
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'languageField' => 'sys_language_uid',
'translationSource' => 'l10n_source',
// ...
],
'columns' => [
'sys_language_uid' => [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
'config' => [
'type' => 'language',
],
],
'l18n_parent' => [
'displayCond' => 'FIELD:sys_language_uid:>:0',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
[
'label' => '',
'value' => 0,
],
],
'foreign_table' => 'tx_myextension_domain_model_something',
'foreign_table_where' =>
'AND {#tx_myextension_domain_model_something}.{#pid}=###CURRENT_PID###'
. ' AND {#tx_myextension_domain_model_something}.{#sys_language_uid} IN (-1,0)',
'default' => 0,
],
],
'l10n_source' => [
'config' => [
'type' => 'passthrough',
],
],
'l18n_diffsource' => [
'config' => [
'type' => 'passthrough',
'default' => '',
],
],
// ...
],
];