Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Calendar and Outlook.

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 1373 Views
  • doliner
    Avatar
    Community Member
    4 Posts

    Calendar and Outlook. Link to this post

    I would like to be able to add a calendar event from my site to our users outlook calendar but when I try to import the .ics file I get this:

    "This error can appear if you have attempted to save a recurring Lunar appointment in iCalendar format.
    To avoid this error, set the appointment option to Gregorian instead of Lunar."

    If I open the .ics file in notepad I get this:

    BEGIN:VCALENDAR
    PRODID:-//dev.heartnet3//EN
    CALSCALE:GREGORIAN
    VERSION:2.0
    METHOD:PUBLISH
    BEGIN:VEVENT
    DTSTART;TZID=US-Eastern:20090720T170000
    DTEND;TZID=US-Eastern:20090720T230000
    URL:/silverstripe/shcc-calendar/
    SUMMARY;CHARSET=UTF-8:Happy Hour
    END:VEVENT
    END:VCALENDAR

    First off this is not a recurring event, I'm not sure if that's just outlook being an awesome mail client or if there is something I am not seeing in the .ics file that flags it a recurring event.

    Is there anything I can do to get this to work?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Calendar and Outlook. Link to this post

    Well, Outlook is definitely awesome, no question about that. That's kind of annoying that it has such a requirement because there's no way to predict where the ICS file will end up, so setting ICS files to use the lunar CALSCALE property will have a global effect and may result in lost functionality for everyone using normal mail clients.

    I've made the CALSCALE property a configurable param in the Calendar class. It defaults to GREGORIAN, but you can override it in your mysite/_config.php.

    Calendar::set_param('calScale','LUNAR');

    See if that works for ya.

    Also, ICS files are not set up to handle recurring events yet. Right now you just get the single date that you click on. Eventually, I want to have two buttons, one for "Add this date to calendar" and one for "Add all dates to calendar"

  • doliner
    Avatar
    Community Member
    4 Posts

    Re: Calendar and Outlook. Link to this post

    I get this:

    Fatal error: Access to undeclared static property: Calendar::$calScale in /var/www/silverstripe/event_calendar/code/Calendar.php on line 50

  • UncleCheese
    Avatar
    4085 Posts

    Re: Calendar and Outlook. Link to this post

    Umm.. Well, it's there. I'm looking at it right now. When did you last update your SVN?

  • doliner
    Avatar
    Community Member
    4 Posts

    Re: Calendar and Outlook. Link to this post

    Never pulled from SVN just grabbed the lastest release.

    modules-event_calendar-r51.tar.gz

  • UncleCheese
    Avatar
    4085 Posts

    Re: Calendar and Outlook. Link to this post

    Hmm.. Well, the SVN is on revision 60 now. So I'm not sure what's wrong with the ZIP file. It's supposed to automatically update, but it's way behind. Best to use SVN because this project gets updated very frequently.

    1373 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.