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

2 pages with the same name, but different language

Started by P. Fighter 8 years ago · 4 replies · 531 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 Hanns Mattes, 3 weeks ago
1 266 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 195 3 weeks ago
General · by Jerry Hunt, 3 weeks ago
2 331 3 weeks ago
General · by pamtbaau, 3 weeks ago
1 253 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 221 3 weeks ago