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 · 582 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 Andy Miller, 2 days ago
0 72 2 days ago
General · by Veehem, 3 days ago
0 111 3 days ago
General · by milkboy, 4 days ago
0 113 4 days ago
General · by ian russell, 2 weeks ago
2 205 1 week ago
General · by pamtbaau, 1 month ago
2 462 2 weeks ago