Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

MultiLang - check if page is visible in another language

Started by Muut Archive 11 years ago · 1 replies · 529 views
11 years ago

Hello,
Is there a way to check whether a page is visible or published in another language?

Thanks

11 years ago

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.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 674 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago