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

Support archive

Behavior of unit="week"?

lisens 28 Nov 2012 14:46 question, complete

In Low Events, is there a way to group events by day?

Currently, if you have two events on the same day, it will display the date twice, one for each event. I would like show one week at the time, and with only one date heading for events of the same date. Is that possible?

Here is how it looks currently:


Here is how I want it to look:


Current code:
<table border="0" width="100%">
<tbody>
{exp:low_events:entries channel="calendar" date="{segment_2}" unit="month"}
<tr>
<td colspan="2">
<p class="list-container"><b>{event_dates:start_date format="%d. %F %Y - %l"}</b></p>
</td>
</tr>
<tr>
<td><p class="list-container">{event_dates:start_time format="%H:%i"}</td>
<td><p class="list-container">{event_description}<br></td>
</tr>
{/exp:low_events:entries}
</tbody>
</table>

Replies

  1. Low 28 Nov 2012 14:51

    You could probably make that work with the :first variable and using unit="day" on that variable.

  2. lisens 28 Nov 2012 16:02

    Great, worked like a charm. Is there any way to also force no br/p tags between the events?

    Thanks!

  3. Low 28 Nov 2012 16:06

    Is there any way to also force no br/p tags between the events?


    Not sure what you mean by that. The Low Events fieldtype itself doesn't generate HTML, so any br-tags or p-tags you have there, you put there yourself...