Course templates file override in custom theme help!

Course templates file override in custom theme help!

Sandipa Mukherjee發表於
Number of replies: 2
Particularly helpful Moodlers的相片

How to override <moodle>/course/templates/coursecard.mustache file in custom theme?

I have create a folder name as "course" under <moodle>/mytheme/templates/course/coursecard.mustache file and add some class into this file for my custom development and purge all caches. It does not work. 

Thanks in advance.

評比平均分數: -
In reply to Sandipa Mukherjee

Re: Course templates file override in custom theme help!

Vitaly Potenko發表於
Core developers的相片 Plugin developers的相片
Try to use '.../templates/core_course/...' path or perhaps '.../templates/core/course/...'.
It's just guessing so I haven't checked it myself.
In reply to Vitaly Potenko

Re: Course templates file override in custom theme help!

Matthieu MARC發表於

The solution was to put the coursecard.mustache in theme/{mytheme}/templates/core_course directory.

評比平均分數:Useful (2)