Certificate Component
We use onedoc for our certificate file generation service. It enables us just take HTML and print it out to high quality pdf resources. As you might have seen on the dashboard - you can create wild User Certificate experiences with a little bit of work. - No limits.
Certificate Variables
Certificate Variables determine where live data is inserted into the final pdf.
- Variables are detonated with the curly brackets symbols
{variable_name}
Available Variables
Variables come from 3 sources
- Consumer Objects
- Course Object - from where the certificate varialbe is used
- System Datas - things like dates etc
Here is the exhuastive list of it
Consumer Object
{consumer_firstname}
{consumer_lastname}
{consumer_email}
Course Object
{course_title}
{course_description}
System Datas
{system_id}
{system_date}
{system_time}
Simple add in your certificate's html file with
{objectname_variablename}
and it will be added automatically for you.
More datas depending on what you store on Course and Consumer Objects
In reality - all the string or number variables of course and consumer objects can be used for variables So if you want to add more data - store it on the consumer object or course object and it will automatically work as a variable.
- If its of type string or number/integer.
Dont forget to prepend the variable name with a parent reference. e.g using
firstname
, instead ofconsumer_firstname