-
Improvement
-
Resolution: Fixed
-
Minor
-
4.0.7, 4.1.2
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MOODLE_400_STABLE, MOODLE_401_STABLE
-
MDL-77552-401 -
-
HQ 2023 Sprint i1.3 Moppies
This a request from the discussion MDL-77319 to backport a 4.2 issue MDL-77386.
The Moodle 4.0+ course editor renders all the course index content in the front end. This has many advantages but limits the mustache data generation to the information stored in the front end. This information is called "course state" and contains much information about the sections and activities.
However, the current data for each activity is limited to the features implemented in the core formats, without considering that themes and blocks can also use that information to override or render extra templates.
In particular, having the module (forum, wiki...) and the plugin name (mod_forum, mod_wiki) in the front end allows the themes and blocks to use that information to their own advantage. For example, to render activity icons, get specific strings from an activity lang or generate URLs easily.
The patch won't affect the current editor behaviour and will only add two new attributes to the state object.