how to only show a page if it has content in a specific language?
For example, I have a Kirby 3 site and I have a blog post and itβs not always have 2 languages English and Chinese version. Some have only in Chinese and some have only in English.
But the problem is in Kirby when you create a post it will automatically create 2 txt files that include whatever language you put in first and it shows that language in both English and Chinese in the front end as well. I just want to show the language that only have content.
So anyone has encountered this issue or any solutions for it?
On the overview page, you can filter by translation, like this: Quicktip: Filtering by language | Kirby CMS. However, this only works for the non-default languages, because a text file for the default language is always created.
Therefore, it makes sense to add a toggle field to your blueprints which allows you to mark if a translation is complete, then filter by this field per translation.
In the same way, you can use this field to filter your language navigation, and to decide what you want to do for the single article: redirect to existing language or to the error page if the translation does not exist.
Sorry have to open this back on. Is there a solution for just showing pages in their language? As you can see there are mixed pages for Chineses and English.