Hi, Does anyone know how to show past events from the Event Calendar?
I know there's the upcomingEvent function but is there a past/previous event function? I want to show a list of past event teasers on the homepage, yesterday and back - my current code
function Events() {
$today = date("Y-m-d");
return DataObject::get_one("Calendar")->Events(null, $today, null, false, 5, null);
}
just shows all upcoming events and trying something like
<% control PreviousEvents %>
$Event.Title $_Dates $Event.Link, etc..
<% end_control %>
gives no joy either,
..any ideas?