Set a student variable and use it in a Moodle module

Set a student variable and use it in a Moodle module

Filip Rysavy -
回帖数:2

Hi,

Is it possible to set a custom user/student variable and use the variable in the module text?

Example:

Set a user-slug variable either manually or e.g. from user email + random number:

john.doe@example.com => Creates a user-slug: john-doe-example-com-357

And when I create course modules, is it possible to render the variable, unique for each student?

For example in "Text and media area":

Check your personal link here:

https://www.some-web.com/dir/personal-link-for-{{ user-slug }}

Thanks for help, hints and suggestions!