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.

All other Modules

Discuss all other Modules here.

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

Calendar event module - displaying recent events


2 Posts   1332 Views


15 June 2009 at 8:31am Community Member, 1 Post

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.

Thanks for your help!


15 June 2009 at 9:02am 4085 Posts

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:


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

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

Works without a problem.