The MIT Events calendar offers a variety of methods for subscribing to calendar feeds and embedding calendars in other websites. Users wishing to subscribe to MIT events in their personal calendar can subscribe to iCal or RSS feeds. For those users wishing to embed calendars on their websites, Localist offers Widgets that can be generated with specific calendar views and options and then be pasted into another website. And for users with more advanced needs, a REST API can be used to read data from Localist into other applications.
- The MIT Events calendar widget builder (https://calendar.mit.edu/help/widget)
- iCal feeds (https://support.localist.com/feeds/)
- RSS feeds (https://support.localist.com/feeds/)
- An Introduction to Widgets (http://support.localist.com/article/widgets/)
- The Localist API (http://support.localist.com/article/localist-api/)
- Be sure the URL referenced in the Widget code uses "https", otherwise the calendar may not display in your site.
- Try the different styles to see which fits your site best, but using the style "None" may be best for picking up your sites styling.
- If you're using the Widget in a sidebar (such as "Sidebar first" and "Sidebar second" in the MIT DLC Drupal Cloud theme) you will likely want to keep event descriptions set to "Brief" or "None", and hide event images. You may also want to use CSS code to adjust the styling of the Widget (see below).
Widgets should pick up the styling of your site, but you may need to make adjustments, for example making the mini calendar font smaller if you are trying to fit it in a sidebar. Here are some of the classes used in the Widget:
- .localist_minicalendar - this controls the mini calendar styling and can be used to reduce the font side if needed
- .localist_minicalendar_events - this controls the styling of the event list
Drupal Cloud users should use the Widget Builder to generate the code for a Widget that can then be embedded into the site. The Widget can be pasted into any part of the site that allows for full HTML editing, for maximum flexibility we advise creating a block for the calendar and paste the Widget into that. The block can then be displayed in different regions of the site as appropriate.
Localist's widgets support additional capabilities and parameters than are available from their widget builder form. For example, you can create widgets that show events spanning several groups or departments, and how recurring events are handled.