leoric Posted July 4, 2014 Share Posted July 4, 2014 i have a repeater field named 'q_items'. the repeater 'q_items' have a PageArray field named 'products'. and now i want search by products field's title. //category A --------------------------------------------------------------------- Page A: ----title ----q_items --------products = PageD (the page's title contain 'processwire',PageA will be show in the search result) Page B: ----title ----q_items --------products = PageE Page C: ----title ----q_items --------products = PageF (the page's title contain 'processwire',PageC will be show in the search result) //category B ---------------------------------------------------------------- Page D ----title = "i love processwire" ----body Page E ----title= "i love this world" ----body Page F ----title= "hello,processwire" ----body in the sample data, when i search 'processwire' and will get PageA and PageC this is an error expression: $matches=$pages->find(q_items.products.title%=processwire) is it possible to do this? Link to comment Share on other sites More sharing options...
Wanze Posted July 4, 2014 Share Posted July 4, 2014 I may be wrong, but I don't think that sub-sub-selectors are possible. You'd have to loop through your repeater pages and collect the products where the title matches. 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