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

Mulltiple Event Calendars? (cheese?)


Reply


389 Views

Avatar
nekranox

Community Member, 31 Posts

18 May 2012 at 10:44pm

Hey guys,

I've got two websites mirrored in my site tree. Each website/branch has an events calendar and a HomePage class which pulls into a summary of events using:

DataObject::get_one("Calendar")->upcomingEvents(5);

However, both pages are displaying the events from the first calendar I created. I've tried following the code through to see if I can't put a ParendID=$this->ID somewhere or somthing of the sort but I'm really struggling. Can someone set me on the right path?

Regards,

Robbie