WMT Calendar Functionality
For each sport's schedule, there is an 'Add To Calendar' button displayed.
Clicking or tapping this button opens up a dialog window that shows list of sports schedules to allow a user to select and subscribe to the calendar for those sports:
To add or edit this list requires logging into a separate system: WMT Calendar
https://calendar.wmt.digital/dashboard/categories
(The login information is in the HawkIT 1Password under WMT Calendar.)
Once logged in, Under 'Categories', existing calendars can be edited, you can see how many subscribers each calendar has, and a new calendar can be created.
'Add Category' or the Edit icon will both bring up a page to add or edit a calendar's settings:
For already existing calendars, this is where the image that is displayed in the dialogue box when the user clicks/taps on 'Add to Calendar' is set and can be updated.
To add a new sport calendar:
- Add the Title
- Select 'America/Chicago' as the Source Timezone
- Check all the boxes in the Overwrite Settings
To get the Source URL, copy this URL: https://hawkeyesports.com/wp-json/v1/external/schedule-events-calendar?token=1wt91wtsujt02gjindp9w3yrpc05k7ygwulzz0wxbjzrqi62212dd1m7&title_with_sport=true&sport_id=
and then add the sport_id value* to the end of the URL string.
Click 'Save and Publish' at the bottom of the page.
*The sport ID comes from the sport category slug. You can find this in the ID in the URL address bar when you click into the respective sport in Sport Categories in the main WMT CMS.
Finally, for a new sport's schedule, in the main WMT CMS, in the Sport Category under 'Schedules' in the Sport Category Setting:
Add this Calendar Code:
<wmt-calendar username="hawkeyesports">Add To Calendar</wmt-calendar>
<script type="module" src="https://calendar.wmt.digital/widget/wmt-calendar/wmt-calendar.esm.js"></script>
<script nomodule src="https://calendar.wmt.digital/widget/wmt-calendar/wmt-calendar.js"></script>
And don't forget to scroll to the bottom of the Sports Category page and hit 'Update.'