OK, I'm trying to limit my list to just the current event happening, but can't seem to get my template to stop listing the upcoming ones for the remainder of the day.
Any ideas?
<%
$STYLE = "List";
&getEvents( {'duration'=> '1'});
$DAY = $Grid->{'grid'}->
- ->
- ;
$total_events=1;
%>
<DL>
<%FOREACH EVENTLIST%>
<%IF EVENTS EXIST%>
<%$total_events++;%>
<%FOREACH EVENT%>
<table width="100%">
<tr>
<td><font style="font-family: verdana, sans-serif; font-size: 9px; font-weight: normal;"><%= SCHEDULE FIELD(start_time) %> - <%= SCHEDULE FIELD(end_time) %></font></td>
<td width="5px"></td>
<font style="font-family: verdana, sans-serif; font-size: 9px; font-weight: normal;"><%= $EVENT->{'details'}->{'title'} %></font>
</font>
</td>
</tr>
</table>
<%/FOREACH%>
<%/IF%>
<%/FOREACH%>
<%unless($total_events){%>
<CENTER><I>No Events</I></CENTER>
<% } %>
</dl>