Jump to:

10842 Posts in 2512 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar, to extend or decorate?

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 670 Views
  • cumquat
    Avatar
    Community Member
    189 Posts

    Event Calendar, to extend or decorate? Link to this post

    Hi guys,

    I'm after some advice please as I keep confusing myself. I'm trying to set up a front end form that will allow a particular group of people to update our main calendar with some training dates. There is a requirement to have some more fields available for this particular form that are not part of the standard CalendarDateTime table, training organiser, location etc.

    First question is really, do I extend the Event_calendar as in UC's Registration Tutorial, if so can these be made to show on the main calendar as I only want one calendar for the site or should I be decorating the CalendarDateTime table?

    The concept of decorating a table has got me a bit turned around and I'm not sure what the best way is.

    Cheers

    Mick

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar, to extend or decorate? Link to this post

    That's a really good question, Mick.

    When I built the EventCalendar module, it was my first attempt at a SilverStripe module, and for some reason I thought it was more user friendly to allow subclassing rather than force people to use decorators.

    That ultimately resulted in an API that is far more complex than just decorating. In fact, the most recent version of EC did away with all that stuff. So just decorate.

  • cumquat
    Avatar
    Community Member
    189 Posts

    Re: Event Calendar, to extend or decorate? Link to this post

    Cheers for that, i was leaning that way, thanks for the confirmation.

    Mick

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