Filtering Criteria for Event Sets
Hi,
We have a large site with lots of events entries (currently about 8,000). We are using Low Events to output filtered sets of events. We are working on a page which is meant to render 3 sets of results based on the criteria below and would like to know *if* and *how* we can render the 3 sets using the Low Events syntax:
Closing Soon:
- limit: end date is within the next 5 days
- sorted by: end date (closest to present first)
- extra rules: none
Opening Soon:
- limit: start date is within the next 5 days
- sorted by: start date (closest to present first)
- extra rules: start date is *after* today (ex. tomorrow, the day after, etc.)
Now:
- limit: none
- sorted by: start date (closest to present first)
- extra rules: the start date is today
Thanks.
Replies
Low 10 Oct 2013 08:58
The thing to remember with Low Events is that you target events based on their duration. Given any date range, whether it is a day, week, month or custom range, events will be shown for that range that either start in the range, end in the range, or are active in the range (start before, end after).
You can exclude certain events from the range using show_passed, show_active, and show_upcoming. By default, all of these are set to Yes.
With that, the closest you can get to what you want is this:
Stoyan Vasilev 10 Oct 2013 16:28
Excellent. Thank you. One confirmation:
unit="day" ensures that if an event starts at 7pm, ends at 8pm today, and it is 5pm now the event is still displayed as active (even though it does not start for another 2hours)?
Thanks.
Low 17 Oct 2013 15:53
unit="day" will tell Low Events to use a timespan of 00:00 to 23:59 for the given date="" parameter. If the date="" parameter isn't given, today is assumed.