Yet another question about not showing untranslated pages

Yeah, this does not seem to work anymore. I’ll check it out.

Edit: This should work:

<?php
$articles = $page->children()->visible()->filter(function($child) {
  return $child->content(site()->language()->code())->exists();
});
1 Like