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

$CalendarWidget with EventCalendar 3

Go to End



Community Member, 5 Posts

16 November 2012 at 6:16am

Hi @ all,

I want to present to the the CalendarWidget.

I have on HomePage.php:
// Funktion zum EventCalendar
public function GlobalCalendarWidget() {
$calendarPage = DataObject::get_one(16); // If you have multiple calendars, specify an id or url segment.
return new CalendarWidget($calendarPage);
function CalendarWidget()
return DataObject::get_one("Calendar")->CalendarWidget();

and on
<% control CalendarWidget() %>
<% end_control %>

But it seems nothing!
Have anybody an idea?