Moodle Plugins directory: Text Replace | Moodle.org
Text Replace
This is a custom certificate element that allows the use of dynamic variables within the text that will be displayed in the generated PDF.
You can include placeholders in the text, such as:
-
{user:firstname}
— will be replaced by the user's first name. -
{course:fullname}
— will be replaced by the course's full name.
Other fields related to the user and the course can also be used in the same format.
This makes it easier to personalize certificates based on user and course data automatically.
Example:
Hello {user:firstname}, welcome to the course {course:fullname}.
→ Output:
Hello John, welcome to the course Introduction to Moodle.
Features:
-
Simple syntax for inserting variables.
-
Support for custom course fields.
-
Optional fallback text if the field is not available.
Maintainer: Vanderson Farias
Comments