Jump to:

11001 Posts in 2733 Topics by 1823 members

All other Modules

SilverStripe Forums » All other Modules » Preview: Event Calendar Module

Discuss all other Modules here.

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

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Go to End
Author Topic: 41874 Views
  • Bernhard
    Avatar
    Community Member
    3 Posts

    Re: Preview: Event Calendar Module Link to this post

    events_calendar ---> please exchange misspelled "Fitler" by correct "Filter"

    \event_calendar\lang\en_US.php - line 00111:
    'Fitler calendar';

    \event_calendar\templates\Layout\CalendarEvent?.ss - line 00011:
    <h4><% _t('FILTERCALENDAR','Fitler calendar') %>:</h4>

  • silk78
    Avatar
    Community Member
    8 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hi UncleCheese!

    After I updated event calendar to the newest version I have a problem:
    I cannot enter dates for announcements and events.
    All I get are those info messages in the admin area:

    Announcements:
    "You may add Announcements once you have saved for the first time."

    CalendarEvents:
    "a Dates
    You may add a Dates once you have saved for the first time."

    Of course I saved, but nothing changed.
    I cannot find any other error message.
    I removed all Calendar tables and rebuilt everything. I also have gone back several versions of event calendar.
    Regardless what I do, the problem remains.

    Until some days ago, everything worked just fine.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Make sure you're up to date on dataobject_manager and event_calendar. That bug was fixed a few revs back.

  • silk78
    Avatar
    Community Member
    8 Posts

    Re: Preview: Event Calendar Module Link to this post

    Thanks! I missed that connection.
    Now it seems to work, but with rev 239 an info box pops up when entering a date, just saying "hi".

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Oops! Now THAT's a bug. An embarrassing one, at that.

    Run an update and you should be okay.

  • silk78
    Avatar
    Community Member
    8 Posts

    Re: Preview: Event Calendar Module Link to this post

    Now everything is fine with the calendar.
    I thought it was a feature, such a friendly program. Greeting the user. It reminded me of Douglas Adams' doors.

  • Scivitri
    Avatar
    Community Member
    2 Posts

    Re: Preview: Event Calendar Module Link to this post

    First, let me say this is an amazing module! I've spent the last couple of days setting up a clean SS environment, seeing what's improved with the intent of rebuilding a site. So far, I think I've installed everything UncleCheese has written.

    Anywho, I did have some stress with Event Calendar. This is the current version (r76) with no customization done yet, so out-of-the-box. It lists every event twice. I later installed the subsite module, and it lists events and announcements from a calendar on the subsite, but only once.

    It looks to me like a problem in Calendar::Event(). The where clause for pulling announcements is mal-formed. The following change worked for me:

    (lines 345-352, but I think this added a couple of lines. It's all the second parameter to DataObject::get())

       "CalendarDateTime.CalendarID={$this->ID}
          AND (
             (StartDate <= '$start' AND EndDate >= '$end') OR
             (StartDate BETWEEN '$start' AND '$end') OR
             (EndDate BETWEEN '$start' AND '$end')
          ) AND
          CalendarDateTime.EventID=0
          $where",

    Enjoy, and thanks for the fine module!

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Thanks for the feedback! What did you change, exactly?

    41874 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
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.