Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

2 pages with the same name, but different language

Started by P. Fighter 8 years ago · 4 replies · 687 views
8 years ago

Is this possible? I'm trying to add a second /home page, but as I save the page, the page editor simply redirects me to the existing (english) version.

8 years ago

This is perfectly possible. You can call the files in the same folder as follows:

chapter.en.md
chapter.fr.md
etc

8 years ago

So, from a CLI standpoint, this seems straightforward, but what about the fact that the admin panel redirects to the already existing page when saving?

8 years ago
  1. Make sure that you have enabled both languages (e.g. en, fr) on the configuration page.
  2. Create a page in English and SAVE the page
  3. Edit/translate the page and use 'SAVE in French' in the right upper corner
👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 122 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 1 week ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago