Jump to content

Selector issues after Processwire update


AAD Web Team
 Share

Recommended Posts

Hello, we've had some selectors no longer work after updating from ProcessWire 3.0.165 to 3.0.184.

This particular selector will find the 3 most recent news items created within the last 6 months to display as a summary on the home page.

 

This selector worked on 3.0.165:

template=staff-news-item, created>=6 months ago, created<=now, sort=-created, limit=3, include=hidden

But on 3.0.184 it returns 0 results. It doesn’t crash or log any warnings. It just doesn’t return anything.

After changing to this, it now works again:

template=staff-news-item, page.created>=-6 months, page.created<=now, sort=-created, limit=3, include=hidden

This also works, with inconsistent use of page.created:

template=staff-news-item, created>=-6 months, page.created<=now, sort=-created, limit=3, include=hidden

 

Is anyone aware of selector changes in recent updates that would cause the selector to break?
 

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