Project

General

Profile

Actions

Feature #78959

closed

Task #79241: Streamline usage of l10n_mode

Non-translated sys_file_reference with "mergeIfNotBlank" doesn't work

Added by Tizian Schmidlin over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2016-12-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hello there,

as already mentioned in the typo3-cms Slack channel, it appears that although sys_file_reference translations work like a charm, the mergeIfNotBlank directive doesn't.

The issue at hand is the way how this is built (and maybe that's the reason why it didn't get implemented in the beginning at the first place).

Usual Translations work like this:

table A
uid
pid
fields
sys_language_uid
l10n_parent

And then a record would look something like:

1 1 my cool field 0 0
2 1 mein cooles feld 1 1

But now in sys_file_reference, this doesn't quite work like this, since the relation to the tt_content element is on the translated record and the translated record doesn't know its parent anymore. Thus no "mergeIfNotBlank" happens.

This would have to be fixed by telling TYPO3 to get the translation by getting the actual sys_file_reference of the l10n_parent of the current sys_file_reference record if the sys_language_uid is empty and mergeIfNotBlank is enabled.

Could you implement something like this for 6.2 LTS (and all the further versions)?

Regards
Tizian

Actions #1

Updated by Riccardo De Contardi over 7 years ago

  • Parent task set to #79241
Actions #2

Updated by Oliver Hader over 7 years ago

  • Status changed from New to Needs Feedback
  • Priority changed from Must have to Could have

Can you please provide more details on the use case? How exactly are you using the mergeIfNotBlank behavior, what is resolved or rendered and what are the differences between the current and the expected behavior? Thx.

Actions #3

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Needs Feedback to Closed

No feedback since 90 days > closed.

(Moreover, mergeIfNotBlank has been removed in the current master (https://docs.typo3.org/typo3cms/extensions/core/8-dev/Changelog/8.6/Breaking-79243-RemoveL10n_modeMergeIfNotBlank.html)

If you think that this is the wrong decision then please reopen it or open a new issue with a reference to this one. Thank you!.

Actions

Also available in: Atom PDF