Jump to:

10929 Posts in 2613 Topics by 1809 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: 40758 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Make sure you're doing Requirements::clear() after the parent::init().. but you probably know that.

    $CalendarWidget will call a Requirements for some javascript and css files.. but I'll look into why that might be failing you.

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hey UncleCheese,

    Just wondering if this is a bug or if you have moved svn servers but I can't get a copy of the Calendar module from http://svn.codespaces.com/bluehousegroup/event_calendar

    It is asking for authentication...

    Thanks

  • UncleCheese
    Avatar
    4085 Posts
  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Preview: Event Calendar Module Link to this post

    Great that svn works

    Might have a bug here, installed module on fresh copy of current trunk. No problems with installation and adding events. I added one event to a calendar and set it to repeat weekly. When viewing the calendar in the front end and clicking on the .ics download icon it causes the following ss error http://pastie.org/427524 This is installed locally on mamp.

    I then changed the line 55 of calendar.php from:
       protected function getEventClass() {
    to
       public function getEventClass() {
    and this now works without issue. I downloaded the .ics and imported it into iCal.

    I don't know if there was a reason the function was protected and I might have broken something else but I am sure you will know all ;) Let me know if there is any other info you want - thanks again

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Interesting. Thanks for that. I'll check in the change.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hello, EventCalendar users!

    First, let me say I'm really happy to see that so many of you have enjoyed using this module. A lot of work went into it, and I think it's something that Silverstripe really needs badly. That said, I think it's still a ways off from being a supported module, but I'd like to get it there. Can we change the direction of this thread to an ad-hoc collection of bug reports and feature requests? I know there are a lot out there, and I'd like to get a nice concise list of everything if I can. Here's what I have so far, in order of priority:

    - Add translation/localization features. Calendar has no support for European date format, other languages, etc.
    - Refactor the getCMSFields function to use a template rather than mixing markup into the controller
    - Review Javascript requirements, localize to widgets rather than forcing requirement for all calendar pages.

    Anything else?

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hi UncleCheese

    Thanks for all your work on this Module. I'm currently still in the Stage of implementing it into a site I'm building. Good to see that the localization and date-format features are given a high priority.

    Regarding the Requirements: IMHO, javascript and css files are part of the View and should be put into the templates rather than the controller or even model. That way somebody could just create a custom template with or without the requirements.
    I temporarily resolved my issue (thanks for the pointer) by removing some requirements from the CalendarUi.class.php (btw. why is there a CalendarUI.php and a CalendarUI.class.php file with virtually the same content?).

    I'll post any bugs or feature requests here.
    Keep up the good work.
    Best - Roman

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Yeah, I was equally confounded by the duplicate code in CalendarUI and CalendarUI.class. That will definitely be on my list of things to inventory.

    As far as putting requirements on the template, are you speaking to using the <% require %> tag? If so, could you explain how to use it? I've never seen it used and there's no documentation on it.

    And also, how would one force inclusion of javascript for something like the CalendarWidget?

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