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


Reply

2 Posts   1332 Views

Avatar
netfenz

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.

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

Thanks for your help!

Avatar
UncleCheese

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:

Page_Controller

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

Page.ss

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

Works without a problem.