Placeholder variables

Eduflow uses Liquid template for customization

Tony avatar
Written by Tony
Updated over a week ago

Eduflow provides customization through the liquid template language in 2 areas:

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.

Screenshot of Eduflow's embed code section with HTML showing the different variables we support

And below is a screenshot of how the embedded code renders on the activity page.

Screenshot of Eduflow's embed code section with HTML showing the rendered variables

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

{{ institution_id }}

string (UUID)

123e4567-e89b-12d3-a456-426614174000

{{ institution_title }}

string

Institution title

{{ user_id }}

string (UUID)

123e4567-e89b-12d3-a456-426614174000

{{ user_fullname }}

string

John Doe

{{ user_email }}

string

{{ user_type }}

string (enum)
student, teacher, assistant, admin, owner

student

Embed activity variables

Variable

Type

Example

{{ activity_id }}

string (UUID)

123e4567-e89b-12d3-a456-426614174000

{{ activity_title }}

string

Activity Title

{{ flow_id }}

string (UUID)

123e4567-e89b-12d3-a456-426614174000

{{ flow_title }}

string

My flow

{{ course_id }}

string (UUID)

123e4567-e89b-12d3-a456-426614174000

{{ course_title }}

string

My Course Title

{{ institution_id }}

string (UUID)

123e4567-e89b-12d3-a456-426614174000

{{ institution_title }}

string

My University Name

{{ course_user_type }}

string
(student, teacher, assistant)

student

{{ course_user_status }}

string
(ACTIVE, INVITATION_PENDING)

ACTIVE

{{ user_id }}

string (UUID)

123e4567-e89b-12d3-a456-426614174000

{{ user_fullname }}

string

My name

{{ user_email }}

string

{{ user_type }}

string (enum)
student, teacher, assistant, admin, owner

student

Did this answer your question?