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

Mulltiple Event Calendars? (cheese?)


Go to End


927 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