Jump to:

10979 Posts in 2722 Topics by 1815 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: 41399 Views
  • Scivitri
    Avatar
    Community Member
    2 Posts

    Re: Preview: Event Calendar Module Link to this post

    I added the "and (" & ")" around the date filters. Without that, the ORs were making pretty much every event in the database true.

    I also added the "AND calendarDateTime.EventID=0" so it will only select announcements, not events. Not strictly sure if this is necessary, but it seemed logical to not select things that the previous piece of code had already added to the list.

  • silk78
    Avatar
    Community Member
    8 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hello UncleCheese,

    I might have a similar problem:

    I have updated dataobject_manager and event_calendar to the newest versions (r253 and r76).

    Now I have the following effects:

    1. I have two separate calendars in my page. After the update in each of the calendars I now see events and announcements from both calendars in both calendars. In the back-end everything looks fine.

    2. In Calendar.ss the result from $Link now seems to be wrong. It should link to "more" for a specific event, but instead it links to http://<date>. Substitute the date for an event for <date>. The base tag is correct.

    Both had worked in older versions. I am using both modules out of the box.

    Best regards,
    Christian

  • cygnet
    Avatar
    Community Member
    20 Posts

    Re: Preview: Event Calendar Module Link to this post

    I have the same problem. Also I'm unable to select any date, because no popup calender occurs when I try to add Announcement or event. I've attached the javascript errors I get

    Attached Files
  • cygnet
    Avatar
    Community Member
    20 Posts

    Re: Preview: Event Calendar Module Link to this post

    One more problem with localization, when I change locale I get no months translation in filter, thought it is localized in date_ua_utf8.js
    See the picture.

    Attached Files
  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Can you confirm you're on the latest version? As far as I can see, that shouldn't be happening.

  • cygnet
    Avatar
    Community Member
    20 Posts

    Re: Preview: Event Calendar Module Link to this post

    yes. I'm on the latest everything

  • cygnet
    Avatar
    Community Member
    20 Posts

    Re: Preview: Event Calendar Module Link to this post

    could it be the problem because of the specific theme selected?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Here is the function that is generating the options in that dropdown:

       public static function getMonthsMap()
       {
    return array (
          '01' => self::i18n_date('%b',strtotime('2000-01-01')),
          '02' => self::i18n_date('%b',strtotime('2000-02-01')),
          '03' => self::i18n_date('%b',strtotime('2000-03-01')),
          '04' => self::i18n_date('%b',strtotime('2000-04-01')),
          '05' => self::i18n_date('%b',strtotime('2000-05-01')),
          '06' => self::i18n_date('%b',strtotime('2000-06-01')),
          '07' => self::i18n_date('%b',strtotime('2000-07-01')),
          '08' => self::i18n_date('%b',strtotime('2000-08-01')),
          '09' => self::i18n_date('%b',strtotime('2000-09-01')),
          '10' => self::i18n_date('%b',strtotime('2000-10-01')),
          '11' => self::i18n_date('%b',strtotime('2000-11-01')),
          '12' => self::i18n_date('%b',strtotime('2000-12-01'))
        );   
       }

    Note: i18n_date() is at this point an alias for strftime() until we figure out how to handle the UTF-8 issue.

    So, my next question is, if you echo out strftime('%b',strtotime("2008-09-09")); somewhere, do you get the correct character set?

    How can I set my locale to replicate what you have?

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