Course templates file override in custom theme help!

Course templates file override in custom theme help!

door Sandipa Mukherjee -
Aantal antwoorden: 2
Foto van 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.

Gemiddelde van de beoordelingen:  -
Als antwoord op Sandipa Mukherjee

Re: Course templates file override in custom theme help!

door Vitaly Potenko -
Foto van Core developers Foto van 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.
Gemiddelde van de beoordelingen:  -
Als antwoord op Vitaly Potenko

Re: Course templates file override in custom theme help!

door Matthieu MARC -

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

Gemiddelde van de beoordelingen: Useful (2)