Jump to content

Ho to find('include=inactive'), or similar


Recommended Posts

Posted

Hello!

How do i include pages with non active languages in a search?

Say I want to find ->find('template=x'), regardless if it happens to be 'active' or not in the current language?

If I do include=all I also get hidden, unpublished, from the trash, (i think) but I just want the inactive versions. Is there a selector for this?

Thanks!

image.thumb.png.0f3e18dde7af82a1c9c9d8c53041f390.png

 

 

Posted

I unfortunately haven't had any experience working on a multilingual site, but hopefully merging the two following solutions together will get you on your way?

 

  • Like 1
Posted

Thank you, i take that as if it can't be done with a selector (on the database side of things). The filtering needs to happen after getting all the results.

Posted

This might be a question for @ryan, though I'm not aware of any selector for this, but again, I'm, unfortunately, also not well-versed in a multilingual setup. It does appear, based on @bernhard's discovery, that looping through the available result set of all options can get you what you need...I think.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...