opalepatrick Posted July 1, 2014 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
Wanze Posted July 1, 2014 Posted July 1, 2014 Specify the field you want to filter from the page as subfiled, e.g. hue.title~=$q 3
opalepatrick Posted July 1, 2014 Author Posted July 1, 2014 Thanks Wanze, that just got my head around page fields. I never really understood them until you did that above
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