Dynamic content is made possible in Learndot using the Freemarker template engine. FreeMarker is an open source template engine. See 'What is Apache FreeMarker?' in the official web page.
Marking Content as Dynamic
Blurbs, pages, and other entities in Learndot can include values with dynamic content. To use Freemarker as part of a entities content, mark that field as including dynamic content. Here's how to create a dynamic entity:
Navigate to System > Content > Choose the entity (i.e Pages)
Click on the New button to create a new page. Or, click on the entity's name to View an existing page.
Click on the Edit icon
Set Dynamic to Yes
You will need some programming knowledge in order to create dynamic content sections in TraningRocket. In order to learn the syntax and functions available to you when working in Freemarker, we recommend referring to the offical Freemarker documentation.
The syntax is similar to other templating engines such as Velocity.
<#ifx == 1>
x is 1
Learndot ships with a number of dynamic blurbs and page sections which should provide a basis for creating your own dynamic content.
When editing FreeMarker content in a blurb, page, etc. that has been marked as dynamic, you will have access to the following tag libraries.
The "target." prefix refers to the "Supported Entity" that you have selected. The Supported Entity that is provided will dictate which parameters can be used in the email template. Please see an example of "Enrollment" in the table below.
There is also a "to." prefix and "from." prefix which allow you to get details about the person receiving the email and the person sending the email.
Click for the full list of Supported Entities
Full list of Supported Entities:
Affiliate Customer Order Conversion
Affiliate Opportunity Conversion
Contact File Attachment
Content Option Resource
Coupon / Rule
Credit Card Payment
eLearning Survey Response (Deprecated)
eLearning Testimonial (Deprecated)
Forum Topic Subscription
Instructor Led Training
Instructor Led Training Session
Learning Component Resource
Learning Plan Item
Multiple Choice Option
Multiple Choice Question
Multiple Choice Question Response
Purchase Order Payment
Request for Contact
SAML 2.0 Configuration
SAML 2.0 Connection
Stream Post Comment
Text Question Response
Training Assessment Response
Training Credit Account
Training Credit Credit
Training Credit Debit
Training Credit Payment
Training Credit Redemption Request
Training Credit Usage
Training Survey Response
Example of fields that are available for the Supported Entity Type of Enrollment. The Field names were found by doing a data or CSV export of the Enrolment objects in the admin console, and reading the column names from the reported csv file. You can do the same thing for other object types.