Marco Ro Posted March 8, 2018 Share Posted March 8, 2018 Hi, I want show in one page a list of pages titles that have a specific category. For give this particular category I think to use a options field. (this is an extra category) Is it possible use in combination with this: $page_category = $pages->find("template=single-forniture"); for filter only the pages they have the options field checked for a specific value? Thank you! Link to comment Share on other sites More sharing options...
kongondo Posted March 8, 2018 Share Posted March 8, 2018 options_field=value should do the trick. It doesn't matter if your options field is of single of multiple type. ProcessWire will find the values. $page_category = $pages->find("template=single-forniture, your_options_field_name=value");// e.g. oak 1 Link to comment Share on other sites More sharing options...
Marco Ro Posted March 8, 2018 Author Share Posted March 8, 2018 Thank you @kongondo. Btw I use this for solve that problem with the double variables. I just make an other product page for a type of variation, and connect the pages through a normal link. the page is like mirror so I can do. I use also the page reference field, that works nice. Link to comment Share on other sites More sharing options...
kongondo Posted March 8, 2018 Share Posted March 8, 2018 Glad it helped . 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