opalepatrick Posted July 1, 2014 Share Posted July 1, 2014 I think I may have another issue filtering page fields when working with my search pages. This works fine as all the fields are text fields $matches = $pages->find("template=fabric, title|body|colour~=$q, limit=50"); This does not, I think because the hue field is a page type $matches = $pages->find("template=fabric, title|body|hue~=$q, limit=50"); How can I deal with that if I am correct. I have several page type fields that I would like to include in my search. Thanks Link to comment Share on other sites More sharing options...
Wanze Posted July 1, 2014 Share Posted July 1, 2014 Specify the field you want to filter from the page as subfiled, e.g. hue.title~=$q 3 Link to comment Share on other sites More sharing options...
opalepatrick Posted July 1, 2014 Author Share Posted July 1, 2014 Thanks Wanze, that just got my head around page fields. I never really understood them until you did that above 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