Hello,
Is there a way to check whether a page is visible or published in another language?
Thanks
Hello,
Is there a way to check whether a page is visible or published in another language?
Thanks
Really there is not a simple way to do this. It's handled transparently when you switch to the other language.
The reasoning behind this is for performance reasons, Grav only loads a single language (active language) at a time. So when in one language it doesn't know if another version exists for another language.
What it does (in the langswitcher plugin for example) is let you switch to the raw-route of another supported language, and if it does not exists, it falls back through the list to find one that does.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1359 | 9 years ago | ||
| 2 | 936 | 9 years ago | ||
| 2 | 4066 | 9 years ago | ||
| 1 | 2955 | 9 years ago | ||
| 3 | 1121 | 9 years ago |