简体   繁体   中英

How to customize moodle core files?

I would like to customize view.php file which is the core file of moodle, since modifying it in core is not good practice I would like to modify it from my theme,

By default there is a cool theme , I just copy pasted the course directory into it and Try to customize it but moodle is not recognizing my directory.

What is the procedure to do this kind of customization, I check this link but unable to follow it since I don't understand. Can any one help me here about it?

Despite the fact that there are several view.php files, which one do you want to adapt?

Please note that you cannot simply overwrite for example course/view.php in your theme. You have to override the specific renderers, see https://docs.moodle.org/dev/Overriding_a_renderer

To override an url in Moodle you may use custom scripts . However if it's a matter of a renderer you should try overriding that first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM