verbb / events

Craft CMS Plugin for events management and ticketing.
Other
22 stars 13 forks source link

Can no longer query past events #22

Closed satcreative closed 4 years ago

satcreative commented 5 years ago

Description

I had a component on my site that displayed past events using the below code:

{% set pastEvents = craft.events.events() .startDate("< #{start}") .all() %} {% for pastEvent in pastEvents %} {{ pastEvent.title }} {% endfor %}

This was working fine, however it has now stopped working. I've only noticed today, but wonder if it was a result of the plugin updates on 8th and 9th Aug.

Can anyone else get this query to output past events?

Additional info

engram-design commented 4 years ago

So this behaviour was changed in 1.1.0, to by default, only showing events that are currently on.

You'll want to have a look at https://verbb.io/craft-plugins/events/docs/template-guides/events-index#past-events

Sorry if this wasn't clear in the release notes.