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 · 674 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, 4 days ago
2 86 15 hours ago
General · by Old Man Umby, 2 days ago
1 60 2 days ago
General · by Sebastian, 4 days ago
1 81 4 days ago
General · by Andy Miller, 2 weeks ago
0 215 2 weeks ago
General · by ready-4-IT, 6 months ago
1 716 3 weeks ago