Replies: 1 comment 2 replies
-
|
You could do an ad hoc version of this yourself by adding a “Use German content” Lightswitch field to your field layout. Then from your template, you could swap out the entry with the German one when the field is enabled. {% if entry.useGermanContent and entry.site.handle != 'de' %}
{% set entry = entry.localized.site('de').one() ?? entry %}
{% endif %} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say a news channel is available in 3 languages.
We can deactivate translations:
Then the entry will just show up on the german site.
But what if you want the german text to show up on the french site too? That is a super frequent use case for swiss sites in our case.
The solution would be a fallback logic. The editor can tell the cms "use the german version for italian too, but keep french for french".
In the GUI, this could look like this:
A much more simpler version would be to hard override all versions of the content with just one:
but that is a bit of an aberration.
Any thoughts on this use case? Suggestions on how to solve DIY or even better with existing mechanisms?
Anyone think this would be useful too?
Beta Was this translation helpful? Give feedback.
All reactions