extending moodle themes

extending moodle themes

by peter gee -
Number of replies: 1

Hi

I am familiar with how to extend moodle mustache templates when developing a new theme. 

For example to overload the template for /lib/templates/loginform.mustache 

i use the file /theme/mytheme/templates/core/loginform.mustache

to overload the file /theme/boost/templates/footer.mustache i use the file /theme/mytheme/templates/theme_boost/footer.mustache

my question is, how to do i overload the template file: /course/format/templates/local/content/cm/title.mustache ?

Average of ratings: -
In reply to peter gee

Re: extending moodle themes

by peter gee -
the answer is : 
/theme/mytheme/templates/core_courseformat/local/content/cm/title.mustache
the way i traced this was to first put a breakpoint at 
/course/format/topics/format.php
and when that triggered put a breakpoint in the load method of:
/lib/mustache/src/Mustache/Loader/FilesystemLoader.php
The name parameter was core_courseformat/local/content/cm/title which gave me the path to use.

Average of ratings:Useful (1)