Eduflow provides customization through the liquid template language in 2 areas:
in the institution's custom code section and in embed activities.
How variables work
When variables are added to a supported area, the placeholder variables will be replaced. Below is a screenshot showing the placeholder variables listed out in the embed code section.
And below is a screenshot of how the embedded code renders on the activity page.
Control statements
You can use control statements, such as if
, elsif
and else
in your code.
<p>Hello {{ user_fullname }}!</p>
{% if user_type == 'learner' %}
Welcome to the class!
{% elsif user_type == 'teacher' %}
You are a teacher!
{% endif %}
See also: Control flow on Liquid template documentation.
Institution custom code variables
Variable | Type | Example |
| string (UUID) |
|
| string |
|
| string (UUID) |
|
| string |
|
| string | |
| string (enum) |
|
Embed activity variables
Variable | Type | Example |
| string (UUID) |
|
| string | |
| string (UUID) |
|
| string |
|
| string (UUID) |
|
| string | |
| string (UUID) |
|
| string | |
| string | |
| string |
|
| string (UUID) |
|
| string |
|
| string | |
| string (enum) | |