Jump to:

10850 Posts in 2517 Topics by 1793 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: 39406 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Though I can't code it for you or promise you success, if it were my gig, here's how I'd do it.

    Extend the Calendar class to AllWorkshopsHolder, and overload the getStandardEvents(), getRecurringEvents(), and getAnnouncements(), and possibly even the Events() method, as well, and have them include other WorkshopsHolders in your result set. This will grant you the liberty to simply hard code your class names, rather than relying on the Calendar "magic" to figure them out via your has_one and has_many arrays.

    Like I said, it's too complex for me to give you example code, but if you build it out, post your work along with any problems you're having, I can do my best to figure it out. Good luck!

  • Xeal
    Avatar
    Community Member
    37 Posts

    Re: Preview: Event Calendar Module Link to this post

    I thought I was just about done with questions when I realized something was missing. Well not really missing, but anyways. I've got a filter working on my calendar, however, if I click the month or a day for that matter, the filter remains there. I'm filtering by category and my category is let's say cheese, hehe... The filter remains cheese unless I click on the link again. Now personally, I don't really care, but the users that I'm making the site for would "prefer" it to be easier. I was trying to figure out how to do this, but I'm not even sure where to start. I'm hoping you can point me in the right direction.

    Thanks !

    Xeal

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    Really interesting you mention that. I just had a client that was really impressed with the widget retaining the filters and complimented my design. Hard to please everyone.

    What would we envision for toggling this behavior? Maybe a checkbox below the calendar that says "preserve filters?"

  • Xeal
    Avatar
    Community Member
    37 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hehe yeah I know it's probably impossible to please everyone... I was thinking of something like that, maybe the filter itself could be saved in a session variable? and then if preserve filters is selected save it to the variable. When the user comes back to that page check if the variable is set?

  • mobius
    Avatar
    Community Member
    54 Posts

    Re: Preview: Event Calendar Module Link to this post

    Hey UncleCheese,

    I've just tried to get the event calendar up and running, but my calendar page is giving a javascript error

    jQuery("#calendar-widget").datePicker is not a function

    any ideas as to what I've done wrong? Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    What version of dataobject_manager are you on? Make sure you're up to date on the latest SVN.

  • mobius
    Avatar
    Community Member
    54 Posts

    Re: Preview: Event Calendar Module Link to this post

    Thats probably the problem - I didn't see that dataobject_manager was required anywhere?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Preview: Event Calendar Module Link to this post

    That's weird. It shouldn't be required. Where are you getting the error exactly?

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