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

Support archive

exp:low_events:entries not showing passed entries

Oliver Hood 16 Aug 2012 14:57 question, complete

I'm trying to get the exp:low_events:entries tag pair to show both passed and upcoming events. But it's not displaying for some reason.

Here's my code:

{exp:low_events:entries channel="events" limit="12"}
<div class="item-divider-event{if event_date:passed} passed{/if}">
<div class="event-col-1">
<h3>{event_date:start_date format="%j.%m.%Y"}</h3>
</div>
<div class="event-col-2">
<h3>{title}</h3>{event_summary}
</div>
<div class="event-col-3">{event_country}
<h3>{country}</h3>
{location}{/event_country}
</div>
<div class="event-col-4">
<a href="#" class="button">More Information</a>
</div>
</div>
{/exp:low_events:entries}


I'm trying to display passed events in a way that'll appear 'greyed out' with the 'passed' part of the class.

Note: Using Low Events 1.0.3 and EE 2.5.2.

Replies

  1. Low 16 Aug 2012 15:15

    Hi Oliver,

    If no unit or date is specified in the tag, Low Events will assume you want to display upcoming events from today (server time) onwards. If you specify a unit (like year, month, week or day), it will display all events in that unit, including passed events.

    Does that help?

  2. Oliver Hood 16 Aug 2012 15:33

    Ahh. I've set the unit to year and it appears to be showing the passed entries as well (week, day and month didn't display anything?) Seems OK anyway.

    Thanks.

  3. Low 16 Aug 2012 15:37

    If no date="" param is given, today is assumed. Then it looks at the unit="" param. If no unit is given, "upcoming" is assumed. If "year" is given, it starts with events from Jan 1st of given year. if "month" is given, it starts with events from the 1st of the month of given date. If a date like this is given: 2012-08, it assumes a unit="month". And extrapolate. :)

    Make sense?