-
Improvement
-
Resolution: Fixed
-
Minor
-
4.2
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
MDL-77386-master -
-
0.5
-
HQ 2023 Sprint i1.2 Moppies
The current course editor is based on a data structure called state which is loaded in the frontend using the core_courseformat_get_state webservice. This data structure is used to support all user interactions and even to generate the course index on the fly.
The state data prevent the front end from asking for extra information from the backend. However, the current data provided for each activity is limited to the features implemented in the formats, without taking into consideration that themes and blocks can also use that information for the same reasons.
In particular, having the module (forum, wiki...) and the plugin name (mod_forum, mod_wiki) in the frontend 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.
This issue was detected during the discussion of MDL-77319 and came from theme developer that wants to override the course index templates.