From 0d0827212445b8a817b12025197eae99d4d4bd83 Mon Sep 17 00:00:00 2001 From: ferran Date: Thu, 14 Aug 2025 16:37:57 +0200 Subject: [PATCH] [docs] Activity chooser update --- docs/devupdate.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/devupdate.md b/docs/devupdate.md index 06d7c35daa..009dfb320c 100644 --- a/docs/devupdate.md +++ b/docs/devupdate.md @@ -43,3 +43,13 @@ The `maxsections` setting in course formats is now deprecated. Previously, this 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. 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. + +## Course format: new activity chooser rendering + + + +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. + +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. + +For themes that override activity chooser templates, ensure that the activity chooser button includes the required `data-section-id` and the `data-returnsectionid` attributes.