Add the ability to fetch Public/Religious holidays from Google Calendar as demoed here with US holidays: https://fullcalendar.io/docs/google-calendar-demo

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Spokje created an issue. See original summary.

spokje’s picture

Attached patch gives the ability to show public/religious holidays for a large variety of countries/religions.

They are fetched from Google Calendar, an API key for that service is required.
A link to the procedure on how to obtain that key is included in the View Display Settings Form.

spokje’s picture

Status: Active » Needs review
spokje’s picture

StatusFileSize
new22.08 KB

Updated patch with the choice to render holidays as an Event (so the same as the Events from Drupal, with title and clickable) or as just a background colour (CSS class .fc-bgevent)

mingsong’s picture

Thanks for the awesome work. I will test it when I have a chance.

kiwimind’s picture

Realise that this is an old issue now, but we're still using a patch from it, so thought I'd re-roll against latest head of this branch (6530f38), especially as we need this for D9 upgrades, which our previous pinned dev commit did not support.

mingsong’s picture

Appreciate your works.

I am wondering if it is possible to make it work with 5.1.x ?

I will be more than happy to release is with next 5.1 release.

mingsong’s picture

w01f’s picture

Just came across this - this would indeed be extremely useful for a number of sites where clients either already have or need to add days such as federal holidays, public events, or even other company/organization event dates already stored on a google calendar for internal use.

+1

mingsong’s picture

sweetchuck’s picture

Version: 8.x-2.x-dev » 5.x-dev
StatusFileSize
new27.48 KB

Patch #6 ported to drupal/fullcalendar_view:5.x-dev

ikit-claw’s picture

Status: Needs review » Reviewed & tested by the community

We have been using this for awhile now in production. Thanks Sweetchuck

reenaraghavan made their first commit to this issue’s fork.

JohnAlbin made their first commit to this issue’s fork.

johnalbin’s picture

Status: Reviewed & tested by the community » Needs review

The patch no longer applied after 5.1.8's release. I've updated the patch for 5.1.11. Needs testing.

begrafx’s picture

While we're working on rolling this into things, it would really be nice if there were the option to include Sunrise/Sunset times for selected days. (i.e. "Display Sunrise times every Tuesday" or "Show Sunrise and Sunset times on the 4th Thursday of each month" or whatever.)

  • Mingsong committed 2802b322 on 5.x
    Issue #3067509 by Spokje, JohnAlbin, Mingsong, kiwimind, Sweetchuck,...
mingsong’s picture

Status: Needs review » Fixed

Thanks everyone.

Merged into the develop branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.