Hi there. We want to add a conditional to the upcoming_events variable but I’m not seeing any matching variables for it in the documentation. We want to show upcoming events at the top of lists but ONLY for featured events for that particular day or “today”. This code is currently in lw_cal_day.html. It adds upcoming events but for that entire week, not just the day.
{[ if (obj.upcoming_events) { ]}
<div class="upcoming-events">
<h2>Upcoming Featured Events</h2>
<ul class="lw_cal_event_list">
{{ upcoming_events }}
</ul>
</div>
{[ } ]}
We want to show featured events for just that day. So something like…
{[ if (obj.upcoming_events ***(for just this day)***) { ]}
<div class="upcoming-events">
<h2>Upcoming Featured Events</h2>
<ul class="lw_cal_event_list">
{{ upcoming_events ***(for just this day)***) }}
</ul>
</div>
{[ } ]}
If this is possible, please let me know how to go about it.
Thanks as always!
Adam