How to get only translated pages in collection?

Hi all!

Is possible get only the translated pages in collections? I have a lot of posts that not are translated in english but in the english collection page (Blog) they appears in the default lang (Spanish)

Thanks

@javiregpa Not sure if this will do what you want, but I recall the following related setting in ‘/user/config/system.yaml’:

languages:
  translations_fallback: true     # Fallback through supported translations if active lang doesn't exist

Try setting it to false and see if it works.

hI @anon76427325

I have translations_fallback set to false, but also shows the posts although they are not translated in English.

This is my blog.en.md

---
title: News
slug: news
body_classes: blog_classic
content:
    items: '@self.children'
    limit: 10
    order:
        by: publish_date
        dir: desc
    pagination: true
    url_taxonomy_filters: false
---

# NEWS AND EVENTS
##### CORPORATE NEWS

Thanks

I found a “solution”

Yo need to translate the page in the others languages and after set unpublished this pages, in the collection page don’t appear the unpublished pages.

Thanks

1 Like

Nice find! Thanks for sharing your solution…

1 Like

Thanks for your help @anon76427325