TCA tt_content - l18n_parent field missing
I think around line 1968 in tbl_tt_content.php (sysext 'cms') is the l18n_parent field missing.
The corresponding label is missing too. See locallang_ttc.xml.
'general' => array( 'showitem' => 'CType;LLL:EXT:cms/locallang_ttc.xml:CType_formlabel, colPos;LLL:EXT:cms/locallang_ttc.xml:colPos_formlabel, sys_language_uid;LLL:EXT:cms/locallang_ttc.xml:sys_language_uid_formlabel', 'canNotCollapse' => 1, ),
Updated by Thomas Deinhamer about 10 years ago
- Target version set to 4.5.4
It seems that the l18n_parent field was forgotten,
maybe because if it is shown, it will probably explode
the layout as it can get very long for text content elements.
Probably this needs some adjustments, but at present
there is no default setting in the TCA to render this
select field with acceptable output.
The only possible way to limit the width of the select field
for now, would be to write a custom userfunc for the field.
You can edit the l18n_parent in the list view anyway,
but for normal editors no chance, they can't reference
new created elements (no-copy) to original contents.
I think this should be fixed in the next 4.5 release too.
My temporary bugfix is was to overwrite the TCA in the
ext_tables.php file inside a custom extension; I added
"--linebreak--, l18n_parent" at the end:
$TCA['tt_content']['palettes']['general']['showitem'] = 'CType;LLL:EXT:cms/locallang_ttc.xml:CType_formlabel, colPos;LLL:EXT:cms/locallang_ttc.xml:colPos_formlabel, sys_language_uid;LLL:EXT:cms/locallang_ttc.xml:sys_language_uid_formlabel, --linebreak--, l18n_parent';