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

Posts multi language

Started by Muut Archive 11 years ago · 2 replies · 386 views
11 years ago

Hi all,

I'm a newbie with Grav and I have a question regarding multi language support.
I'm setting up a blog with grav in two languages. However, some posts are in english and others are in dutch which, sometimes, are not the translation of english posts.
Grav displays all posts on homepage without taking into account language selected. It seems it doesn't filter posts.

Does it a issue with theme (I use pinpress) or I do something wrong?

Thanks in advance for all your answers!

Kind regards

ARnaud

11 years ago

The default behavior is to fall back to the default language of a post even if it's not translated.

The best way tot change this is to create a translated page for the post you don't want to display and set published: false. This will ensure the page is 'found' but not displayed.

11 years ago

Many thanks for you quick answer and for this workaround. It works well!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1352 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4063 9 years ago
Archive · by Muut Archive, 9 years ago
1 2949 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago