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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

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

Mulltiple Event Calendars? (cheese?)


Go to End


679 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