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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

2 pages with the same name, but different language

Started by P. Fighter 8 years ago · 4 replies · 472 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago