[TASK] Allow to define multiple inlineLocalizeSynchronize commands 54/44354/3
authorOliver Hader <oliver@typo3.org>
Thu, 29 Oct 2015 12:59:53 +0000 (13:59 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 7 Dec 2015 06:31:29 +0000 (07:31 +0100)
commitd3cd477ebb2a6576f35c4026a059badf6f58d63b
treefa28c6bbda30056feab576ea5ebfb1c666db832b
parent456d50575bdec0ec6d015785ef7105d804286513
[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 <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Documentation/Changelog/master/Important-71126-AllowToDefineMultipleInlineLocalizeSynchronizeCommands.rst [new file with mode: 0644]