activity module icon

activity module icon

par ben achour maryem,
Nombre de réponses : 3

I am developing an activity module but it does not show me the icon , 
I have icon.png and icon.svg under mod / evaluation / pix but no icon next to the module
is there a code that must be written to display me the icon ?

.

Moyenne des évaluations  -
En réponse à ben achour maryem

Zadeva: activity module icon

par ŽAN GOSTIČ,
Hello,

as far as I know the only thing required to display an icon is to have a file named 'icon.png' or 'icon.svg' in the pix folder, so no extra code has to be written.
have you tried purging the caches? (Site administration -> Development -> Purge caches -> purge all caches).
En réponse à ŽAN GOSTIČ

Re: Zadeva: activity module icon

par ben achour maryem,


yes I have purged the caches but it does not show me the icon

En réponse à ben achour maryem

Re: Zadeva: activity module icon

par Benjamin Ellis,
Avatar Particularly helpful Moodlers
Hi,

Try only keeping one of the files - possibly the .png file and see if that works - also not sure on Windows - but you might also have a permission problem - can the webserver user actually access the folder or file. Try loading the image in your browser directly.