Howdy,
I am trying to have my SSI that is shown on my index.html page only show the first 5 events. I have only been able to have it show the events for whatever duration I set it to. So basically is there a way to have the SSI show the next 5 events and not the next 5 days.
Also what do I need to do to have the output from the SSI show the date in abbreviated format like 01/22 instead of showing it like April 21.
Here is the code I have:
<%&getEvents( {'duration'=>'90d'} );$total_events=0;%>
<style><!--A.minical { text-decoration:underline; }A.minical:hover { text-decoration:none; }.minical { color:#660000; }--></style>
<TABLE cellspacing=1>
<%EVENTLOOP:%>
<%FOREACH EVENTLIST%>
<%IF EVENTS EXIST%>
<%$curr_events=0;%>
<%FOREACH EVENT%>
<%$total_events++;%>
<%if (total_events==5) {last EVENTLOOP;} %>
<%$curr_events++;%>
<%/FOREACH%>
<tr>
<td height=1></td>
</tr>
<tr>
<td align=center valign=middle rowspan="<%=$curr_events%>"> <font face="Arial, Helvetica, sans-serif" size="2"><%=$DAY->{monthname}%>
<%=$DAY->{dd}%></font></td>
<%$curr_events=0;%>
<%FOREACH EVENT%>
<% if ($curr_events) { %>
<tr>
<% } $curr_events++; %>
<td><font size="2" face="Arial, Helvetica, sans-serif"><img src="/nolaaggie/images/spacer.gif" width="20" height="1">
</font></td>
<td><font size=-1> <A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" class="minical">
<%=$EVENT->{'details'}->{'title'} %></a> </font></td>
</tr>
<%/FOREACH%>
<%/IF%>
<%/FOREACH%>
<%unless($total_events){%>
<tr>
<td align=center><I>No Events</I></td>
</tr>
<% } %>
</table>
Thanks for the help in advance!