Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Event Calendar: $_DATES for repeating events


Go to End


4 Posts   2813 Views

Avatar
silk

Community Member, 18 Posts

7 November 2009 at 5:10am

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?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

7 November 2009 at 5:47am

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.

Avatar
silk

Community Member, 18 Posts

8 November 2009 at 1:31am

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!

Avatar
redactuk

Community Member, 117 Posts

16 August 2011 at 11:42am

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