Closed MorganEPatch closed 7 years ago
@LyonesGamer that looks better but I'm not sure what I should be seeing when I test this. Are there any calendar entries already in it?
You need to get an API Key and OAuth Client ID from the Google Calendar API for the website (https://console.developer.google.com/), and put those in the constants in calendar-widget.html, and make sure the calendar ID oregonstate.edu_s37pfj8sngtqk8s9fj66pslji8@group.calendar.google.com
is set in pelicanconf.py. Then it should display all the events in the CASS Website Calendar.
@LyonesGamer where is that going to be set for each site that uses this feature?
Are they going to each have a different pelicanconf? Otherwise, how are different configurations set for each site?
They will each have their own pelicanconf.
I moved the client ID and auth key into the pelicanconf as well so each site can set their own.
@LyonesGamer and how do I generate said keys on their site?
Create a project in the console, click Library, select the Google Calendar API, then enable it. Then go to Credentials, click Create Credentials, and create an API Key and an OAuth API Key.
Sorry I didn't specify that earlier. Is there somewhere I should note that for future reference? Just the README?
@LyonesGamer yes, please put that in the README. How many events will it show?
Up to 10. That can be reduced though. Should I also put that in the conf?
@LyonesGamer yes, I would put that in the conf. I think 10 might be too much. Maybe three? Also, does it provide a link to the calendar so folks can see it in full?
Unfortunately no longer needed as the cass website is moving to Drupal hosted by EECS.
Fixes #65.
Add a widget to the site which will list upcoming events from the CASS Website Calendar.