Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arie 224 posts 675 karma points
    Aug 13, 2014 @ 06:33
    Arie
    0

    Feature Suggestions

    First off, KS.Umbraco7.Calendar already is a fantastic package!

    After working with it for a bit I have a few suggestions:

    1. For recurring events, add fields for a) the number of times an event should be repeated and b) the last date of the recurring events. User should have a choice between a) and b).
    2. Provide a way to override certain dates for recurring events on which the event is skipped. For instance, an event could be weekly, but would be canceled on holidays like Christmas. Also, it might be beneficial if there where a way to exclude dates based on a pattern (e.g. weekly recurring event, except on the fifth Monday of a month).
    3. Combine the project with FullCalendar (http://arshaw.com/fullcalendar/
  • Ole Martin Bakke 112 posts 624 karma points
    Aug 13, 2014 @ 09:03
    Ole Martin Bakke
    0

    Thanks for your suggestions.

    1. That's a good idea. Then the existing endDate could be used as a duration variable for the specific event. Eg startDate 01.07.2014 18:00 and endDate 01.07.2014 20:00, would mean that all recurring event would start at 18 and finish at 20 until the last date for the recurring event or until the event has taken place x times.
    2. I'll look into that. Then the user needs to choose what calendar they want to use, because there are big differences in holidays in the US and in eg Norway.
    3. I migth an integration like that when we get the proper project. For the moment we mainly use custom event listings, and not so much of standard calendar views. But if you have som finished templates/examples I can take a look at them and maybe include them as an example.
  • Arie 224 posts 675 karma points
    Aug 13, 2014 @ 18:18
    Arie
    0
    1. It may even make sense to separate the date and the time. That way it would be much easier indicate the duration. Alternatively, you could add a field for the duration (in hours:minutes). By the way, my original post included a suggestion about duration, but I'm afraid I deleted too much when I edited the message. You may have that information in e-mail.
    2. Actual holidays may be helpful, but I think it would be just as easy for users to simply list the exception dates. In addition, the exceptions often aren't triggered by specific days. Take a scouting troop for instance. They would have weekly meetings, but when they're out on their annual camping trip the weekly meeting would not take place.
    3. I wrote a snippet that creates JSON output of the KS.Calendar data that is then consumed by the FullCalendar JS. I'll send it to you shortly.
  • alexant 22 posts 42 karma points
    Aug 26, 2014 @ 22:16
    alexant
    0

    Hi! Greate work!

    Some events (like training courses in my case) occure once a 3 Months or once a half year.

    Please add the possibility to the  "recuring monthly" event to chose which months should the event repeat on (just like the "recuring weekly" event).

    Thanks

  • Ole Martin Bakke 112 posts 624 karma points
    Aug 27, 2014 @ 22:00
    Ole Martin Bakke
    0

    alexant: I'll add this to my todo-list, thanks :)

  • Ole Martin Bakke 112 posts 624 karma points
    Sep 05, 2014 @ 21:49
    Ole Martin Bakke
    0

    alexant: This is added in the latest version (0.1.6)

  • keilo 568 posts 1023 karma points
    Sep 07, 2014 @ 15:37
    keilo
    0

    Hi Arie

    I saw your post about the script that creates KS.Calendar data JSON for the FullCalendar. Do you mind sharing the code, it could be very handy for what im trying to prototype.

    my email is akeilox [at] gmail . com

    cheers

  • Arie 224 posts 675 karma points
    Sep 08, 2014 @ 04:51
    Arie
    0

    @Keilo

    I just did a quick implementation - nothing fancy.

    First I created a new template that I called "FullCalendarJSON":

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @using KS.Umbraco7.Calendar.Core
    
    @{
        Layout = null;
    }
    
    @{
    
        var calItems = new List<object>();
    
        foreach (CalendarEvent ce in Calendar.getEvents(Convert.ToDateTime(Request.QueryString["start"]), Convert.ToDateTime(Request.QueryString["end"]), "eventDate"))
        {
    
            calItems.Add(new { title = @ce.content.Name, start = @ce.startDate.ToString("yyyy-MM-ddTHH:mm"), end = (ce.endDate.HasValue ? ce.endDate.Value.ToString("yyyy-MM-dd HH:mm") : "") });
    
        }
    
        Json.Write(calItems, Response.Output);
    
    }
    

    Then I simply call this template with Umbraco's alt-template feature:

    http://www.website.com/FullCalendarJSON?start=2014-09-01&end=2014-09-30
    

    That generates a JSON output that can be consumed by Adam Shaw's FullCalendar (http://fullcalendar.io/)

    Let me know if you have any questions.

Please Sign in or register to post replies

Write your reply to:

Draft