You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/devupdate.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,32 @@ Most Moodle tooling has already been updated to support this, but minor web serv
19
19
20
20
See the [Restructure documentation](./guides/restructure/index.md) for further information on some of the changes required.
21
21
22
-
## Course: activity chooser footer has been changed
22
+
## Course format: activity chooser is now in core_courseformat
23
23
24
24
<Sinceversion="5.1"issueNumber="MDL-85597" />
25
+
The activity chooser logic and templates have been relocated from `core_course` to `core_courseformat`. This change may impact themes that override the activity chooser rendering, but it also enables format plugins to provide custom outputs and templates for activity chooser elements, similar to other course content components. For details on how format can override outputs, see the [overriding output classes from course format plugin page](http://localhost:3000/docs/5.1/apis/plugintypes/format#override-output-classes).s
26
+
27
+
**How to check if your plugin is affected:**
28
+
29
+
For theme plugins, review whether any of the following templates are overridden:
30
+
31
+
-`core_course/activitychooser` (now in `core_courseformat/activitychooser`)
32
+
-`core_course/activitychooserbutton` (now in `core_courseformat/local/content/activitychooserbutton`)
33
+
- Any template in `core_course/local/activitychooser` (now in `core_courseformat/local/activitychooser`)
34
+
35
+
Additionally, renderer methods for loading the activity chooser have changed. Check if your format or theme overrides the following method:
36
+
37
+
-`core_course_renderer::course_activitychooser` (no longer used)
38
+
39
+
**What you need to do:**
40
+
41
+
- Move any overridden templates or AMD modules to their new locations in `core_courseformat`.
42
+
- Follow any deprecation notices for the activity chooser.
43
+
44
+
## Course format: activity chooser footer has been changed
45
+
46
+
<Sinceversion="5.1"issueNumber="MDL-85597" />
47
+
25
48
The activity chooser UI now features a dedicated footer button for adding the selected activity to the course. The logic for managing the activity chooser footer has moved to `course/amd/src/local/activitychooser/dialogue.js`, which now controls the visibility of the back and add buttons based on the modal's content. This update may impact plugins that implement custom activity chooser footers.
0 commit comments