Skip to content

Commit 77e70ca

Browse files
committed
[docs] Activity chooser core_courseformat
1 parent c1d8ab5 commit 77e70ca

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

docs/devupdate.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,32 @@ Most Moodle tooling has already been updated to support this, but minor web serv
1919

2020
See the [Restructure documentation](./guides/restructure/index.md) for further information on some of the changes required.
2121

22-
## Course: activity chooser footer has been changed
22+
## Course format: activity chooser is now in core_courseformat
2323

2424
<Since version="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+
<Since version="5.1" issueNumber="MDL-85597" />
47+
2548
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.
2649

2750
**How to determine if your plugin is affected:**

0 commit comments

Comments
 (0)