Jump to content

ProcessWire find help ("text=a, sort=price, text=b, sort=price")


Recommended Posts

Posted

Hi all, hope everyone is well.

So, I want to return the results where the text field matches 'a' and sort those by 'price', then display the results where the text field matches 'b' and sort those by 'price'. Is ProcessWire capable of this or do I just need to do a couple of foreach?

Posted

Ok it got a bit more interesting. Text could have Available, Coming Soon or Not Available with prices. I want them to appear like:

Available sorted by price

Not Available sorted by price

Coming Soon sorted by price

Easily done with 3 foreach blocks but was just curious.

Posted

If the "texts" would be a options/page field then you can sort them in the page tree / field setup accordingly and willyc's last example would still work.

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
  • Recently Browsing   0 members

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