** top section displays everything for the next 6 months **
You could modify the ssi.html template file to retrieve any number of events and include them into another file using SSI. The only change needed is to change this line:
&getEvents( {'duration'=>$in{duration}} );
to
&getEvents( {'duration'=>$in{duration}, 'range'=>$in{range}, 'startdate'=>$in{startdate}, 'enddate'=>$in{enddate} } );
You can then pass the start and and date to it for the events to be displayed. If you included the template twice, once with upcoming events and another for past events, both could be shown on the same page.
There are 2 problems with that which are:
1. Your host would have to be able to use the 'include virtual' SSI tag to pass the variables like:
<!--#include virtual="/cgi-bin/calendar.pl?template=ssi.html&startdate=20020101&enddate=20020601"-->
2. You'd have to pass the start and end dates (which would change all the time) in that SSI call.
If you're good at math or programming you could program the template to calculate the start or end date of the events to be displayed from the current date string $DATESTRING. That way you wouldn't need to pass either, just some variable so the template knows to display past or upcoming events.
The difficulty with that would be to determine a date string 6 months previous to a date like 20030101. You couldn't just subtract a number of months from it and arrive that the correct start date.
There's one option for you to work on anyway.
Dan O.
[This message has been edited by DanO (edited May 07, 2003).]