joe_g Posted January 31, 2024 Posted January 31, 2024 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!
BrendonKoz Posted February 7, 2024 Posted February 7, 2024 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? 1
joe_g Posted February 15, 2024 Author Posted February 15, 2024 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.
BrendonKoz Posted February 16, 2024 Posted February 16, 2024 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now