- 🇦🇹Austria arthur_lorenz Vienna
The problem: The layout builder loads the blocks by the referenced block revision id, that is saved in the layout field. As soon as we add a translation to the block, a new revision is created, becomes the default revision and the one referenced in the layout field becomes outdated. If we now update the block in the original language it creates a new revision that is based on the outdated revision and therefore has no effect on the translations.
Solution: Update the referenced revision in the layout when a translation is created or updated. Also update all nodes that have translations so all block translations are in sync again. This will cause the original language to be set back to the point where the revision got outdated (because the translation was created). My solution to this so far is to create a new node revision in the update hook to be able to revisit the latest version of the block. But the content has to be updated manually.
- 🇦🇹Austria arthur_lorenz Vienna
There was a leftover statement in the function docs - removed it.
- 🇦🇹Austria arthur_lorenz Vienna
argh, sry for spamming, the last file contained a line that should not've been there.
- last update
over 1 year ago 40 pass This patch further extends patch #11 to:
- Synchronize the referenced block revisions in all layout translations when the layout is saved in the source language - rather than only doing the synchronization when the layout is saved in the translation language.
- Synchronize the referenced block revisions in all languages, including if there are 3 or more languages.
- Add tests.