Task #71126

Allow to define multiple inlineLocalizeSynchronize commands

Added by Oliver Hader almost 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2015-10-29
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

The inlineLocalizeSynchronize command in DataHandler currently supports these formats:
  • [parent][13][inlineLocalizeSynchronize] = field,14
  • [parent][13][inlineLocalizeSynchronize] = field,localize
  • [parent][13][inlineLocalizeSynchronize] = field,synchronize

Since the sub-commands "localize" and "synchronize" address the whole parent scope, the particular definition of a child-id (14 in this case) is only considered for one child-element. Localizing different children would then result in multiple independent DataHandler processings.

The scope of this change is to extend the API to define multiple child-ids and define the proper language, which is currently determined from the parent-element magically.

The current string configuration format is changed to be an array, legacy configurations are converted to the new format:

[parent][13][inlineLocalizeSynchronize] = [
field: name of the parent field,
language: id of the target language,
action: either "localize" or "snynchronize",
ids: array of child-ids to be localized [1, 2, 3]
]
Either "action" or "ids" must be defined.

Associated revisions

Revision d3cd477e (diff)
Added by Oliver Hader almost 4 years ago

[TASK] Allow to define multiple inlineLocalizeSynchronize commands

The inlineLocalizeSynchronize command in DataHandler currently
supports these formats:
  • [parent][13][inlineLocalizeSynchronize] = field,14
  • [parent][13][inlineLocalizeSynchronize] = field,localize
  • [parent][13][inlineLocalizeSynchronize] = field,synchronize

Since the sub-commands "localize" and "synchronize" address the
whole parent scope, the particular definition of a child-id (14
in this case) is only considered for one child-element. Localizing
different children would then result in multiple independent
DataHandler processings.

The scope of this change is to extend the API to define multiple
child-ids and define the proper language, which is currently
determined from the parent-element magically.

The current string configuration format is changed to be an array,
legacy configurations are converted to the new format:

[parent][13][inlineLocalizeSynchronize] = [
field: name of the parent field,
language: id of the target language,
action: either "localize" or "synchronize",
ids: array of child-ids to be localized [1, 2, 3]
]
Either "action" or "ids" must be defined.

Resolves: #71126
Releases: master, 6.2
Change-Id: Ic7e1293a44047bfd69017e240dd8563a1dffa423
Reviewed-on: https://review.typo3.org/44354
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>
Reviewed-by: Georg Ringer <>
Tested-by: Georg Ringer <>

History

#1 Updated by Gerrit Code Review almost 4 years ago

  • Status changed from New 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/44354

#2 Updated by Gerrit Code Review almost 4 years ago

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/44354

#3 Updated by Gerrit Code Review almost 4 years ago

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

#4 Updated by Markus Sommer almost 4 years ago

  • Assignee set to Oliver Hader

#5 Updated by Oliver Hader almost 4 years ago

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

#6 Updated by Riccardo De Contardi almost 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF