Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Event Calendar Recent Events Behavior


Go to End


1174 Views

Avatar
Andrew Houle

Community Member, 140 Posts

1 October 2010 at 9:28am

I have an event calendar that has an option to switch from upcoming to past events. Using the RecentEvents function it pulls x number of past events. The problem is they don't list from most recently past to oldest. They do list descending, but not from the most recent. So if I have three events that have dates of ... 01/10, 02/10 and 03/10 and I limit the RecentEvents function to 2 (RecentEvents(2)) Then it lists 02/10 and 01/10. How can I get it to list 03/10 and 02/10 instead. I hope my overly wordy explanation makes sense.

TIA
Andrew