简体   繁体   中英

Moodle template editing

I am a Drupal developer now learning Moodle.

I have a need to programmatically insert HTML on Math based quiz pages. So, each math question should display my custom HTML.

Doing the above in Drupal simply involved copying, renaming and editing template.php files and you are then able to customize the display of specific pages.

Can anyone tell me how to do the same in Moodle?

Moodle doesn't use template files. It uses "output renderers" instead. Overview: https://docs.moodle.org/dev/Output_renderers

Overriding a renderer: https://docs.moodle.org/dev/Overriding_a_renderer

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