Project

General

Profile

Actions

Bug #62550

closed

activated defLangBinding: Content Elements that exist only in translation are not displayed at all

Added by Andreas Allacher about 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2014-10-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

With activated defLangBinding setting content elements that only exist in the translation are not displayed at all.

The problem seems to be
if (!$lP && ($this->defLangBinding || $row['sys_language_uid'] != -1)) {

and
$defLangBinding[$key][$lP][$row[$lP ? 'l18n_parent' : 'uid']] = $singleElementHTML;

Instead of checking regarding language "$lP", it would be better to check if the l18n_parent is set for the corresponding row.

Of course, one also needs to modify getNonTranslatedTTcontentUids method accordingly


Files

01-default.png (12.9 KB) 01-default.png Default view (translated content shown) Mathias Brodala, 2018-05-25 09:23
02-defLangBinding.png (12 KB) 02-defLangBinding.png View with defLangBinding activated (translated content invisible) Mathias Brodala, 2018-05-25 09:23
03-defLangBinding-patched.png (12.2 KB) 03-defLangBinding-patched.png View with defLangBinding activated and patch applied (translated content still invisible) Mathias Brodala, 2018-05-25 09:23

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #81753: Content element translations dissapear in page module after move to another columnNew2017-06-30

Actions
Actions #1

Updated by Daniel Goerz over 8 years ago

  • Category set to Backend User Interface
  • TYPO3 Version changed from 6.2 to 7

In 7 LTS (and current master) the issue can be reproduced as following:

  1. Create a page with at least one alternative language
  2. Copy content to the alternative language (not translate, but copy)
  3. enable mod.web_layout.defLangBinding = 1
  4. Go to page module in language mode
Actions #2

Updated by Riccardo De Contardi about 7 years ago

Still reproducible in latest master 9.0.0-dev

Actions #3

Updated by Riccardo De Contardi about 7 years ago

  • Related to Bug #81753: Content element translations dissapear in page module after move to another column added
Actions #4

Updated by Gerrit Code Review about 7 years ago

  • Status changed from New to Under Review

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

Actions #5

Updated by Gerrit Code Review about 7 years ago

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

Actions #6

Updated by Gerrit Code Review almost 7 years ago

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

Actions #7

Updated by Gerrit Code Review almost 7 years ago

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

Actions #8

Updated by Gerrit Code Review almost 7 years ago

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

Actions #9

Updated by Gerrit Code Review over 6 years ago

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

Actions #10

Updated by Gerrit Code Review over 6 years ago

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

Actions #11

Updated by Gerrit Code Review over 6 years ago

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

Actions #12

Updated by Gerrit Code Review over 6 years ago

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

Actions #13

Updated by Nicole Cordes over 6 years ago

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

Updated by Gerrit Code Review over 6 years ago

  • Status changed from Resolved to Under Review

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

Updated by Mathias Brodala over 6 years ago

Here are my results when testing this change in TYPO3v8 (8.7.15): when activating the defLangBinding option, translated content is invisible as described in the report. However, this is not fixed even after applying the change. But now even the container for the content element is invisible.

Actions #16

Updated by Gerrit Code Review over 6 years ago

Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56932

Actions #17

Updated by Nicole Cordes over 6 years ago

  • Status changed from Under Review to Resolved
Actions #18

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF