Jump to content

selector for empty page reference field


sujag
 Share

Recommended Posts

I'm stuck finding the right selector syntax for an empty page reference field.

I can select all pages with template "fest" that have an entry in selectLocation

$oF = $pages->find('template=fest,selectLocation.id>0');

but now I need the contrary. Find all pages with template "fest" and an empty selectLocation 

My selectLocation Field is setup to reference a single page, but all tests with

$oF = $pages->find('template=fest,selectLocation=FALSE'); or 0 or false won't work.

 

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...