Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

4801 Posts in 908 Topics by 814 members

All other Modules

SilverStripe Forums » All other Modules » Multi-day Events on Event Calendar

Discuss all other Modules here.

Page: 1
Go to End
Author Topic: Multi-day Events on Event Calendar 482 Views
  • cumquat
    avatar
    Community Member
    33 posts

    Multi-day Events on Event Calendar Link to this post

    Hi there, I’ve just started to play with the event calendar module and it all looks great and is working fine, but I was wondering if anybody can tell me a way of when I make a multi-day event that if you click on one of the days in that event that it would show the event, ok this may sound confusing what I mean is if I put an event in from 1st July to 10th July it appears on the 1st of July but not on any of the following dates.

    I’m trying to use this for a friend’s place they want to let out as a holiday let.

    Cheers

    Mick

  • UncleCheese
    avatar
    Forum Moderator
    2667 posts

    Re: Multi-day Events on Event Calendar Link to this post

    We struggled with this. We found that the concept of "Multi-day event" meant different things to different users. For instance, an all weekend workshop could be entered as 10 July - 12 July. It comes up on the calendar on the day it starts. The other two days are confusing calendar entries because one cannot go to the workshop after it has started. Another example is something like, "John's Vacation." I only need to know when his vacation starts. Seeing the entry seven times in a row gets a little redundant. So think of start date / end date as the span of a single event, not a series thereof.

    Now, of course, we had users with your idea of a multi-day event, and rightfully so. You want multiple entries in your calendar. What we found is that this could be quite easily serviced by the repeating events functionality of the calendar. That is, if you assign a start date and and end date, and repeat the event every day, you end up with successive calendar insertions. To me, it's actually a much clearer metaphor. From 1 July to 10 July, you're actually repeating the same content, not spanning a 10-day block of time.

    Does that make sense?

  • cumquat
    avatar
    Community Member
    33 posts

    Re: Multi-day Events on Event Calendar Link to this post

    That all makes sense to me and seems like it could be a solution cheers for that much appreciated.

    Mick

  • bonesbrigade
    avatar
    Community Member
    10 posts

    Re: Multi-day Events on Event Calendar Link to this post

    This doesn't work for large multi day events though. We can't ask our content editors to do a 'repeating event' for a 3 or 4 month long exhibition.

    Is there a button for this somewhere that I don't see? Or is the only way to make a repeating event by adding it more than once?

  • bonesbrigade
    avatar
    Community Member
    10 posts

    Re: Multi-day Events on Event Calendar Link to this post

    Ended up changing the code for my needs:

    if($announcements = DataObject::get(
    $this->getEventDateTimeClass(),
    "CalendarID={$this->ID} AND StartDate <= '".$this->start_date->date()."' AND EndDate >= '".$this->start_date->date()."'$where",
    "StartDate ASC"
    )) {

    foreach($announcements as $announcement)
       $event_list->push($announcement);
    }

    482 Views
Page: 1
Go to Top

Currently Online: jseth

Welcome to our latest member: holy noli

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.