Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Remove item from multiple language blog

Solved by pamtbaau View solution

Started by Ton Haarmans 6 years ago · 4 replies · 609 views
6 years ago

For a client I am making a blog in 2 languages (NL & EN). Some items are only in one of the languages and so should not appear on the blog page of the other language and not in the archive of that language either...
I've tried several possibilities, even with Javascript, but no solution yet. Hope somebody can help me.
Thanks

6 years ago Solution

@TonHaarmans, Have you tried the following setting in '/user/config/system.yaml':

YAML
languages:
  supported: [nl, en]
  content_fallback:
    nl: [nl]
    en: [en]
6 years ago

@TonHaarmans, Nice!

Kind reminder... To enrich the forum, please mark replies providing a solution, or leading to a solution, as 'solution'.

By doing so, people having a similar issue can see a post provides a solution. Others who are willing to answer a post do not needlessly have to open a post to discover it has already been solved. Thanks!

last edited 03/06/21 by pamtbaau
6 years ago

Yes, I'm sorry. I did now. Thanks for reminding.

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 24 hours ago
2 40 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago