Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Calendar Module

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1560 Views
  • UncleCheese
    Avatar
    4085 Posts

    Calendar Module Link to this post

    Just downloaded this from the trunk. Anyone have any idea how to use it?

  • The Frenchy
    Avatar
    Core Development Team
    40 Posts

    Re: Calendar Module Link to this post

    Hi,

    This calendar module is just a platform which is supposed to be linked later with the events module !

    $monthView = new CalendarMonthView( 'name3', 20 );
          //$monthView->removeWednesday();
          $monthView->showWeekLeft();
          $monthView->showWeekRight();
          $monthView->startBySunday();
       
          $weekView = new CalendarWeekView( 'name5', $number = 6 );
          $weekView->setTimePeriod( new CalendarTimePeriod( new CalendarTime( 8 ), new CalendarTime( 22, 35 ) ));
          $weekView->setSubPeriodsLength( new CalendarTime( 0, 45 ) );
       
          $calendar = new Calendar(
             $this,
             'mycalendar',
             array(
                //new CalendarDayView( 'name1', 6 ),
                /*new CalendarMonthView( 'name3', $number = 2, $month = 6 ),
                new CalendarYearView( 'name4', $number = 3 ),*/
                //$monthView,
                $weekView
             )
          );
          $time1 = new CalendarTime( 22, 48 );
          $time2 = new CalendarTime( 23, 58 );
          $period = new CalendarTimePeriod( $time1, $time2 );
          
          return $calendar;

  • UncleCheese
    Avatar
    4085 Posts

    Re: Calendar Module Link to this post

    Interesting. I was actually thinking about contributing an events module. Is that well underway? If so when might we expect it?

    1560 Views
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.