joer80 Posted May 23, 2016 Share Posted May 23, 2016 I am trying to write a selector to populate a drop down (page field) in the "Custom selector to find selectable pages" section. Is it possible to do this following: isCity=1|id=58617 I want the page list to show if it is a certain id, or if it is marked as a city. (To get an "all cities" option) Thanks! Link to comment Share on other sites More sharing options...
tpr Posted May 23, 2016 Share Posted May 23, 2016 Try (isCity=1), (id=58617) 5 Link to comment Share on other sites More sharing options...
joer80 Posted May 23, 2016 Author Share Posted May 23, 2016 That works great! How did you know to do it that way? I couldn't find this in any of the documentation! Link to comment Share on other sites More sharing options...
adrian Posted May 23, 2016 Share Posted May 23, 2016 That works great! How did you know to do it that way? I couldn't find this in any of the documentation! https://processwire.com/api/selectors/#or-groups 1 Link to comment Share on other sites More sharing options...
joer80 Posted May 23, 2016 Author Share Posted May 23, 2016 https://processwire.com/api/selectors/#or-groups wow, I totally just missed it. lol 1 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