All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Displaying just weekends or weekdays listing

thoughtful_web 12 Feb 2014 15:55 question, complete

Hi Low,

Is it possible to use the custom date ranges in Low Events to show an events listing that contains, for example, only events that fall on the weekend in September? And conversely, events that fall on week days in September?

I looked at the PHP documentation for the relative date formats, but couldn’t work out if this was possible.

You wisdom in this area would be much appreciated.

Thanks,

Simon

Replies

  1. Low 12 Feb 2014 16:05

    Hi Simon,

    I'm afraid not. In LE, a (custom) date range has a start date and an end date. Displaying events that fall on the weekend doesn't match such a range, but is actually multiple ranges.

    However, if you add another field to your Events channel, where you can define whether it's a weekend event or not, you could filter by that field in addition to a (single) date range.

  2. thoughtful_web 12 Feb 2014 16:12

    Hi Low,

    Thanks for your prompt reply and for clarifying things for me.

    I think I’ll run with your suggestion as it’s much simpler than writing a custom SQL query (my other option).

    Simon