Moodle Plugins directory: Courses to Calendar: Versions: v4.0 | Moodle.org
Courses to Calendar
Local plugins ::: local_coursetocal
Maintained by
Andres Ramos,
LMS Doctor
Display all your courses in the Calendar as Site Events from selected categories. Sometimes and for some reasons, you want to display to everyone your courses in the Calendar and this is exactly what this plugin does.
Courses to Calendar v4.0
Moodle 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 5.0
Released: Wednesday, September 3, 2025, 4:24 AM
Code prechecks
overview
phplint
phpcs213 | 46
js
css
phpdoc2 | 0
savepoint
thirdparty
grunt
shifter
mustache
gherkin2 | 0
HTML | XMLCourses to Calendar
This simple Moodle plugin allows you to display the courses dates in the Calendar as Site Events. Some times and for some reasons you want to display to all users when courses are being executed in the Calendar and this is exactly what this plugin does.
You are able to decide what categories of courses can be displayed as site events in the Moodle Calendar.
This plugin has the following features.
- From the calendar users can access to a course through a Link.
- As an admin, you can update the course's date directly from the calendar. It supports drag and drop functionality so it automatically updates the course with the new dates.
- You can change the text link that takes the user to the course from the calendar.
- You can change the courses categories that will display the courses in the calendar as Site Events.
This plugin was sponsored by ECBOCES www.ecboces.org and developed by LMS Doctor www.lmsdoctor.com
Version 4.0 Release Notes:
- Event sync
- Events are now identified by component='local_coursetocal' + uuid instead of a legacy type=-99 marker.
- Uses the standard type=1 (calendar event).
- Sync creates/updates events first, then prunes stale ones safely inside a DB transaction, instead of deleting all events and then adding them back in (which caused issues if something timed out leaving calendar with no events at all).
- Null-safe lookups in get_eventid() and update_event()
- ICS export
- exportcal.php updated to use require_login(), token generation, and proper exceptions.
- Language string issues added.
- Scheduled task
- Added a scheduled task for coursetocal sync so sites can keep calendars up to date automatically.
- Upgrade path
- One-time DB migration normalizes legacy events:
- Converts type=-99 to type=1.
- Stamps component='local_coursetocal' on older rows.
- No manual SQL needed from admins.
Version information
- Version build number
- 2025082800
- Version release name
- v4.0
- Maturity
- Stable version
- MD5 Sum
- 6ed1e8e3bb75aafc75c516cf0dbf6bda
- Supported software
- Moodle 4.0, Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0
- Latest release for Moodle 4.0
- Latest release for Moodle 4.1
- Latest release for Moodle 4.2
- Latest release for Moodle 4.3
- Latest release for Moodle 4.4
- Latest release for Moodle 4.5
- Latest release for Moodle 5.0
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
- VCS branch
- master
Default installation instructions for plugins of the type Local plugins
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder in the "local" subdirectory.
- Visit http://yoursite.com/admin to finish the installation.