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

Remove item from multiple language blog

Solved by pamtbaau View solution

Started by Ton Haarmans 5 years ago · 4 replies · 357 views
5 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

5 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]
5 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
5 years ago

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

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 125 19 hours ago
General · by pamtbaau, 1 day ago
1 89 24 hours ago
General · by Andy Miller, 2 days ago
0 73 2 days ago
General · by Marcel, 12 months ago
6 382 5 days ago
General · by Duc , 6 days ago
3 69 6 days ago