Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » $CalendarWidget with EventCalendar 3

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 329 Views
  • tiatisch85
    Community Member
    5 Posts

    $CalendarWidget with EventCalendar 3 Link to this post

    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() %>
          <% end_control %>

    But it seems nothing!
    Have anybody an idea?


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.