Teachers

Teachers

Replacement Strings for the HTML-Editor

Replacement strings are small text strings that allow for automatic customization of the content of the HTML-editor of DTU Learn. This could e.g. be a small string in a custom widget that is automatically replaced with the name of the user that is currently looking at your widget.

To implement the replacement strings all you need to do is copy the relevant replacement string including the curly brackets and paste it in to the HTML-editor you wish to implement it to.

The following tables show an overview of the replacement strings we recommend you use in your course in DTU Learn:

Organization replace strings Description
{OrgName} Name of the organization
{OrgUnitName} Name of the organization unit (name of the course)

User replace strings
(not usable in content HTML-files)
Description
{UserName} Username entered to log on
{FirstName} First name of the user
{LastName} Last name of the user
{RoleName} Name of the user's role
{Email} User's internal email address
{ExternalEmail} User's external email address