Jump to content

API find on id and on parent.id


devsmo
 Share

Recommended Posts

Hello,

I'm building a web app using PW as the backend.
Within the app there's a advanced search tool which allows searching using ID's. This search needs to be able to search stuff with template=x AND (ID=y OR parent.ID=y).

It would seem Processwire doesn't handle this?

 

template=entrytpl, parent.id|id=7077, sort=relatedstuff.release_date, sort=someotehrfield, start=0, limit=100

 

It doesn't cause an error, but the search only happens on one of the IDs (it would seem parent id).
Is there some workaround or solution for this?

 

This site runs on PW 2.7.3, upgrading is not an option for a while yet.

 

 

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...