General developer forum

File/Resource icon

 
Raymond
File/Resource icon
 

I need to update the icon for the resource activity in my moodle. All files uploaded using this plugin {/mod/resource/} need to use ths one icon. How can I achieve this?

I have noticed that even if I replace the icon.png file in the {/mod/resource/pix} folder, the system still doesnt use that icon.

 
Average of ratings: -
Picture of Nitesh Kumar
Re: File/Resource icon
 

Please try after replacing the .svg file.

 
Average of ratings: -
Raymond
Re: File/Resource icon
 
I tried putting both the .svg and .png files into the /mod/resource/pix folder, and it didn't work, even after purging cache on both browser and server.


Also tried putting the the .svg and .png into the /theme/themename/pix_plugins/mod/resource/, and still didnt work.

So I ended up just replacing the images in core that are being fetched by the /theme/images.php file and it solved my problem

 
Average of ratings: -