Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Admin plugin automatic multi-language page creation?

Started by Muut Archive 9 years ago · 5 replies · 607 views
9 years ago

Greetings everyone!
I am new to Grav and was wondering If there is any option, or a hack, which allows admin plugin to automatically, on a page creation, creates a page for all supported languages? So that I don't have to create manually in the pages folder.
Thanks

9 years ago

By default, languages with no page translation will fallback to the default language. So, if your default lang is english, if you don't have a custom version for another language, the english page will be shown.

9 years ago

Thank you for reply! I am talking about admin plugin here. When I am logged in as an admin and create a new page, it just creates a page for one language, even though I have two languages supported with page translation enabled. If I want to make the same page translated into another language I have to do it manually.

9 years ago

Can Admin plugin create both "example.en.md" and "example.fr.md" automatically for me?

9 years ago

No that is not automatic. You need to switch language in the pages list, or choose "Save as french" in the page itself.

But, what's automatic is showing the english version if someone is browsing the french version of the site (fallback to default)

👍 1

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1341 9 years ago
Archive · by Muut Archive, 9 years ago
2 928 9 years ago
Archive · by Muut Archive, 9 years ago
2 4057 9 years ago
Archive · by Muut Archive, 9 years ago
1 2942 9 years ago
Archive · by Muut Archive, 9 years ago
3 1115 9 years ago