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

Support archive

Group years & months with low_events:archive.

Niall O'Brien 24 Jul 2014 11:53 question, complete

Hi, I'm using the low_events:archive tag to output a list of events by year (recent first) and I want to output months with event listings within each of these years. I can accomplish this with low_yearly_archives using the {months} tag pair, but don't see how I can do something similar with low_events. I basically loop through the years and for each year, I loop through the months, outputting any that have 1 or more entries for that month. I understand that low_events:archive doesn't have a date parameter, so how could I hack around such an issue? Please advise. Thanks in advance.

Replies

  1. Low 24 Jul 2014 12:04

    The Archive tag doesn't support nesting years and months like that. Perhaps you could use something like Stash to achieve it. I'll also make a note of this as a feature request.

  2. Niall O'Brien 25 Jul 2014 11:25

    Thanks, it would be much appreciated.