Bug #26709

TCA tt_content - l18n_parent field missing

Added by Daniel Alder about 4 years ago. Updated over 1 year ago.

Status:Resolved Start date:2011-05-09
Priority:Must have Due date:
Assigned To:- % Done:

100%

Category:Backend User Interface Spent time: -
Target version:-
TYPO3 Version:4.5 Is Regression:
PHP Version: Sprint Focus:
Complexity:

Description

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.

Now:

'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,
),

demo.diff Magnifier (1.9 kB) Daniel Alder, 2011-05-10 09:06


Related issues

related to Core - Feature #23766: Implement new layout and labels for tt_content as result ... Closed 2010-10-17

Associated revisions

Revision 2ea4de97
Added by Alexander Bigga over 1 year ago

[BUGFIX] Add l18n_parent to tt_content TCA

If an editor ignores the "Copy default content elements"-button, it is
not possible to get a new content element in the alternative language
related to it's parent.

The existing l18n_parent field is never shown. This seems to be a bug
which was introduced in TYPO3 4.5 and exists up to now.

The patch adds the l18n_parent field to the general tab.

Resolves: #26709
Releases: 6.2
Change-Id: Id5f171cd4d1a6441cb58123aaa2b9bd337271556
Reviewed-on: https://review.typo3.org/29054
Reviewed-by: Frans Saris
Reviewed-by: Nadir S.
Tested-by: Nadir S.
Reviewed-by: Sascha Wilking
Tested-by: Sascha Wilking
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader

History

#1 Updated by Daniel Alder about 4 years ago

Possible solution

#2 Updated by Peter Kraume about 4 years ago

Quick workaround: create a new extension and put this into ext_tables.php:

t3lib_extMgm::addToAllTCAtypes('tt_content','l18n_parent');

#3 Updated by Markus Klein about 4 years ago

Should be enough to add this line to typo3conf/extTables.php.

#4 Updated by Thomas Deinhamer about 4 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';

#5 Updated by Oliver Hader almost 4 years ago

  • Target version changed from 4.5.4 to 4.5.6

#6 Updated by Chris topher almost 4 years ago

  • Target version changed from 4.5.6 to 4.5.8

#7 Updated by Ernesto Baschny over 3 years ago

  • Target version changed from 4.5.8 to 4.5.12

#8 Updated by Alexander Bigga over 3 years ago

Markus Klein wrote:

Should be enough to add this line to typo3conf/extTables.php.

That's what I've done and I get a new tab where I can select the parent again.

That's really necessary because not all editors use the "copy from default" button :-(

#9 Updated by Philipp Gampe about 2 years ago

  • Category set to Backend User Interface
  • Status changed from New to Accepted
  • Target version deleted (4.5.12)

Someone willing to write a patch for this and to push it to gerrit? http://wiki.typo3.org/CWT

#10 Updated by Gerrit Code Review over 1 year ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29054

#11 Updated by Alexander Bigga over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF