This plugin allows you to quickly redirect users to a Moodle activity using the activity's idnumber
and optionally the course's idnumber
.
Why doing this ? It's a way of managing 'universal' links that don't use courses and activity ids, and that can be preserved when the course is exported to another Moodle instance.
- Redirects to the activity view page if the user has access.
- Supports filtering by course using the course's
idnumber
. - If multiple activities match, presents a selection list.
- Handles permissions and visibility checks.
Call the plugin via URL:
/local/idlink/index.php?idnum=ACTIVITY_IDNUMBER&courseidnum=COURSE_IDNUMBER
idnum
: Theidnumber
of the activity (fromcourse_modules.idnumber
).courseidnum
: (optional) Theidnumber
of the course (fromcourse.idnumber
).
If courseidnum
is provided, the search is restricted to that course.
- Copy the plugin folder to
local/idlink
in your Moodle installation. - Visit the admin notifications page to complete installation.
- Moodle 5.x
MIT