-
Improvement
-
Resolution: Done
-
Major
-
4.3.0
-
-
MOODLE_403_STABLE
-
MOODLE_404_STABLE
-
Moodle Apps - 2024 i1.4, Moodle Apps - 2024 i2
When viewing some plugins like an activity or a block, we send some parameters (we call them "args") to the WebService to obtain the template. These args can include data like the blockid, courseid, cmid, etc.
However, I noticed that the Javascript of plugins doesn't have access to this data, so if a plugin wants to use the blockid from the JS code then the plugin needs to send this value from PHP to the JS. IMO it would be better if the app automatically supplied these values to the JS code, it will make it easier for plugins to use these values.