sujag Posted November 16, 2020 Share Posted November 16, 2020 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 More sharing options...
adrian Posted November 16, 2020 Share Posted November 16, 2020 Try: selectLocation.count=0 1 Link to comment Share on other sites More sharing options...
sujag Posted November 16, 2020 Author Share Posted November 16, 2020 Thanks, that works 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