Skip to content

Commit f45fbaa

Browse files
authored
Merge pull request #1420 from ferranrecio/MDL-80295-main
MDL-80295 documenting changes in the activity chooser.
2 parents 4f3e494 + 0d08272 commit f45fbaa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/devupdate.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,13 @@ The `maxsections` setting in course formats is now deprecated. Previously, this
4343
Although the `maxsections` setting remains available for now, it is marked as deprecated and will be removed in Moodle 6.0. Also, the `get_max_sections` from `core_courseformat\base` is also deprecated and will be removed in Moodle 6.0.
4444

4545
If your format plugin relies on `maxsections`, you should add a custom setting in your plugin to control section limits. For reference, see the week format plugin, which now uses its own setting for this functionality.
46+
47+
## Course format: new activity chooser rendering
48+
49+
<Since version="5.1" issueNumber="MDL-80295" />
50+
51+
The activity chooser in course formats has been refactored to use a new rendering approach. It now includes additional attributes such as `data-section-id` and `data-returnsectionid`, and the course renderer method for the activity chooser has changed.
52+
53+
This update primarily affects format plugins that customize section or activity card rendering. If your plugin calls `course_section_add_cm_control`, you should update it to use the new `section_add_cm_controls` method.
54+
55+
For themes that override activity chooser templates, ensure that the activity chooser button includes the required `data-section-id` and the `data-returnsectionid` attributes.

0 commit comments

Comments
 (0)