Skip to content
Advertisement

Moodle email templates

I am working on a Learning Management System build upon Moodle. I want to add an email header and footer for each email.

I did some change in Moodle for adding an image in ./lib/moodlelib.php as follows:

JavaScript

but I want the header and footer as fixed templates. Please help me.

Advertisement

Answer

You could create a message header in a language file (in English either directly under /lang/en or in a plugin) and then add the following string in the language file:

JavaScript

Then you could write a string for your footer as well:

JavaScript

And finally you could insert your strings in the message:

JavaScript

This way your header and footer may be customized at will if you change them directly in the language file (or, in the DB. See here).

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement