Jump to content

Selector where PageField reference may not contain a hidden page


Jeroen Diderik
 Share

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

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