• I’ve been looking at the FullCalendar documentation, and am wondering if it’s possible with this plugin to display custom views.

    For example, a list view that starts on the current day and covers the next 10 days.

    I tried a couple things using the FullCalendar configuration, but nothing worked, so either I’m totally off base (always a possibility) or it’s not possible within the confines of the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aezzell2020

    (@aezzell2020)

    Still looking for an answer to this. Displaying the current week’s worth of events starting on Sunday isn’t terribly useful if you look at the calendar on Friday or Saturday.

    Hoping that it’s possible and that I’m just missing something.

    Thread Starter aezzell2020

    (@aezzell2020)

    I dug around some more in the plugin documentation, and found this.

    https://michielvaneerd.github.io/privategooglecalendars/examples/#calendar-view-title-and-buttons

    It’s also possible to specify today as the first day:

    [pgc first_day=”+0″]

    Or yesterday:

    [pgc first_day=”-1″]

    Or tomorrow:

    [pgc first_day=”+1″]`

    I was able to add

    “first_day”: “+0”

    to the JSON config for the widget and start the listview today. The first couple times I tried it, it didn’t seem to have worked. Probably a caching issue is my guess.

    So now I have it partially working the way I would like: I can start the list of events on the current day, but I don’t see any way to display events past the end of the current week in the listWeek view.

    Plugin Author michielve

    (@michielve)

    “I don’t see any way to display events past the end of the current week in the listWeek view.”

    I’m not sure if this is possible, but if it’s possible it has to be a FullCalendar setting. I think FullCalendar listWeek always displays 7 days.

    Thread Starter aezzell2020

    (@aezzell2020)

    I went into lib/fullcalendar4/list and edited the main.min.js file to change:
    listWeek:{type:"list",duration:{weeks:1}
    to this:
    listWeek:{type:"list",duration:{days:10}
    and that (along with setting “first_day”: “+0”) accomplished what I wanted to do:
    https://new.phoenixuu.org/connect/calendar/

    I realize that editing the code for the plugin that way leaves us in the position of having my changes overwritten if the plugin updates, and doesn’t allow someone to decide they want to display 14 days instead of 10 without editing the code, so I’m still looking for a way to change that setting in the JSON config.

    Do you know if that’s possible?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create custom views?’ is closed to new replies.