Hi @ all,
I want to present to the homepage.ss 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 HomePage.ss:
<% control CalendarWidget() %>
$CalendarWidget
<% end_control %>
But it seems nothing!
Have anybody an idea?
Thanks
Thomas