THIS IS AN MUA PROJECT PROPOSAL THAT WILL BE OR HAS BEEN SUBMITTED FOR POSSIBLE MUA FUNDING. ANY EXISTING TRACKER ITEMS THAT THIS MIGHT DUPLICATE SHOULD BE LINKED TO BELOW.
Each activity / resource comes with an icon. These icons are set by the developer and can be overwritten by a theme.
Though it would be nice if a teacher could have the ability to overwrite/change the standard icon themself while setting up the activity/resource
- Project size: small/medium
- Audience: primary schools, universities, work places
- Target users: teachers, administrators
- To give teachers the option to decided if they want to overwrite the standard activity / resource for their own icon
User stories should be specific to each requirement and provide a clear view of what you want the improvement/new feature to accomplish.
As a teacher, I should be able to have an option in a Moodle Activity or Resource to upload my own icon.
As an admin, I should be able to give teachers the option to overwrite the Moodle Activity / Resource icon.
Example is available in https://moodle.org/plugins/mod_dataform
By the example of the Mod Dataform I know there is the option of adding the field to the activitiy/resource settings.
I have no idea - but I can guess it could be a lot of work - to implement this feature for all activity/resources + in a way that it supports plugins.
To implement this request we have done some research, and adding it to a single activity as implemented in mod_dataform does not seem to be a lot of work (about an hour). Though in order to be able to implement this in all the activity/resources we have looked in the direction of building a local plugin.
In this research we go stuck at one point since we seem to miss the proper hook(s) for it.
A hook could be implemented in different places like:
- The acitivity icon render
- Add extra cm_info
- In get_array_of_activities
If Moodle HQ could implement the necessary hooks, I would be able to build a local plugin that supports this request.
To be complete we have researched the option to add in the courseformat, though that is not what we are looking for because we do not want to be restricted and have the option to add the "new icons" to a menu block. which will not be possible in the approach of a courseformat.