Jump to:

11004 Posts in 2735 Topics by 1824 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar: $_DATES for repeating events

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 2348 Views
  • silk
    Avatar
    Community Member
    18 Posts

    Event Calendar: $_DATES for repeating events Link to this post

    Hi!

    I have a repeated event in my calendar. $_DATES returns for example
    09. Nov. 2009 - 15. Mar. 2010

    That is not what I want. I'd like to get 09. Nov. 2009 only. Would it be possible to expand $_DATES so that in case of a repeating event only the current date is displayed?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar: $_DATES for repeating events Link to this post

    Great catch. I hadn't thought of that. In a recurring event, "end date" means something different than it does for a standard event. An end date for a standard event means that a given event spans multiple days, but for a recurring event, it's the date at which the event stops repeating.

    I'll get in a patch asap.

  • silk
    Avatar
    Community Member
    18 Posts

    Re: Event Calendar: $_DATES for repeating events Link to this post

    Great! That would be great.

    I tried to fix this until you check in your official update, but I did not manage to do it.
    It seems most of
    public function _Dates()
    is meaningless, because everything is done within CalendarUtil::getDateString(). I not see how I can check if I have to deal with a repeating event, though. First I thougt CalendarDateTime's is_single attribute might do the job, but now I think I'm wrong because this is set for none of my events.

    So I guess I will wait until you solve it.

    Thank's a lot!

  • redactuk
    Avatar
    Community Member
    117 Posts

    Re: Event Calendar: $_DATES for repeating events Link to this post

    I know this is a really old post, but is this possible now?

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