Jeroen Diderik Posted November 2, 2013 Share Posted November 2, 2013 Hi all, Is there any way to construct a selector where a Page field may not contain a (referenced) Page that is hidden? I have for example events and they contain a related_city PageField. I want to exlude events from my results that have a related_city that has the page::statusHidden? like: $pages->find('template=event, related_city.status!=hidden'); I could ofcourse loop the results and test the status... but creates quite a lot of overhead, I think. Cheers, JD Link to comment Share on other sites More sharing options...
diogo Posted November 2, 2013 Share Posted November 2, 2013 Try: $pages->find('template=event, related_city.status!=21') Link to comment Share on other sites More sharing options...
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