Jump to content

Show category list form options field


Marco Ro
 Share

Recommended Posts

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

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
  • Like 1
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...