osuosl / dougfir-pelican-theme

Pelican theme based off of the OSU Dougfir Drupal theme
Apache License 2.0
2 stars 2 forks source link

Add "Upcoming Events" widget. #66

Closed MorganEPatch closed 7 years ago

MorganEPatch commented 7 years ago

Fixes #65.

Add a widget to the site which will list upcoming events from the CASS Website Calendar.

ramereth commented 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?

MorganEPatch commented 7 years ago

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.

ramereth commented 7 years ago

@LyonesGamer where is that going to be set for each site that uses this feature?

MorganEPatch commented 7 years ago

Are they going to each have a different pelicanconf? Otherwise, how are different configurations set for each site?

ramereth commented 7 years ago

They will each have their own pelicanconf.

MorganEPatch commented 7 years ago

I moved the client ID and auth key into the pelicanconf as well so each site can set their own.

ramereth commented 7 years ago

@LyonesGamer and how do I generate said keys on their site?

MorganEPatch commented 7 years ago

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?

ramereth commented 7 years ago

@LyonesGamer yes, please put that in the README. How many events will it show?

MorganEPatch commented 7 years ago

Up to 10. That can be reduced though. Should I also put that in the conf?

ramereth commented 7 years ago

@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?

ramereth commented 7 years ago

Unfortunately no longer needed as the cass website is moving to Drupal hosted by EECS.