What happened?
Description
My client has a multi-lingual site (~12 languages), and the weekly article they post gets translated into almost all of those languages. Perhaps needless to say, their Content Editor doesn't speak/read all of those 12 languages. They just receive the original English, apply consistent semantic formatting, and post it.
Meanwhile, multiple translators work on translating the article into their own languages. When each translation is ready, it's sent (usually as a Word doc, so badly in need of semantic formatting) to the Content Editor.
The Content Editor then opens two side-by-side tabs of the article in the backend: one English, and the other in the language they're working on. Therein lies the problem with the Autosave Drafts feature, however, since when, say, a Spanish version of the entry is autosaved, the tab with the English version also gets refreshed.
So, is there a future-proof way going forward (I know autosaveDrafts is deprecated in Craft 4.x for some reason) to either disable autosaving of drafts, or perhaps better, to not refresh all language versions of an entry when a draft is made in some other language?
Steps to reproduce
- Create a section with multiple languages.
- Post content to the fields in the original language.
- In a new tab alongside the original language, make edits to the content in some other language.
- Watch the original language's tab get refreshed.
Expected behavior
Autosaving of a draft entry in one language would not cause the Edit Entry page of all other languages to reload.
Actual behavior
Autosaving of a draft entry in one language DOES cause the Edit Entry page of all other languages to reload.
Craft CMS version
4.8.8
PHP version
8.2.17
Operating system and version
Linux 4.19.286-203.ELK.el7.x86_64
Database type and version
MySQL 23
Image driver and version
Imagick 3.5.0 (ImageMagick 6.9.10-68)
Installed plugins and versions
- Contact Form 3.1.0
- Contact Form Honeypot 2.1.0
- Control Panel CSS 2.6.0
- Redactor 3.0.4
- Redactor Custom Styles 4.0.3
- Super Table 3.0.13
- Twigpack 4.0.0
- Wordsmith 4.4.0
What happened?
Description
My client has a multi-lingual site (~12 languages), and the weekly article they post gets translated into almost all of those languages. Perhaps needless to say, their Content Editor doesn't speak/read all of those 12 languages. They just receive the original English, apply consistent semantic formatting, and post it.
Meanwhile, multiple translators work on translating the article into their own languages. When each translation is ready, it's sent (usually as a Word doc, so badly in need of semantic formatting) to the Content Editor.
The Content Editor then opens two side-by-side tabs of the article in the backend: one English, and the other in the language they're working on. Therein lies the problem with the Autosave Drafts feature, however, since when, say, a Spanish version of the entry is autosaved, the tab with the English version also gets refreshed.
So, is there a future-proof way going forward (I know
autosaveDraftsis deprecated in Craft 4.x for some reason) to either disable autosaving of drafts, or perhaps better, to not refresh all language versions of an entry when a draft is made in some other language?Steps to reproduce
Expected behavior
Autosaving of a draft entry in one language would not cause the Edit Entry page of all other languages to reload.
Actual behavior
Autosaving of a draft entry in one language DOES cause the Edit Entry page of all other languages to reload.
Craft CMS version
4.8.8
PHP version
8.2.17
Operating system and version
Linux 4.19.286-203.ELK.el7.x86_64
Database type and version
MySQL 23
Image driver and version
Imagick 3.5.0 (ImageMagick 6.9.10-68)
Installed plugins and versions