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

Calendar event module - displaying recent events


Go to End


2 Posts   1985 Views

Avatar
netfenz

Community Member, 1 Post

15 June 2009 at 8:31am

Has anyone figured out how to display recent events yet. I've been following this posting where FireMe! asked a similar question, but have not seen a resolution yet.

http://www.silverstripe.org/all-other-modules/show/256241?start=24

Thanks for your help!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

15 June 2009 at 9:02am

I've tried this a hundred different ways and I can't seem to figure out why you guys aren't seeing recent events.

Here's my test code:

Page_Controller

function MyRecentEvents()
{
return DataObject::get_one("Calendar")->RecentEvents(5);
}

Page.ss

<% control MyRecentEvents %>
$_Dates <br />
<% end_control %>

Works without a problem.