How to Add Links in Training Notifications
The below sections will walk you through how to add links in training notifications. Each section covers a different method:
- Adding Login links to existing training notifications *MOST COMMON*
- Adding any links to new or existing training notifications
- Wrapping training notification placeholders (Example: Login, Passwordless Login) in links, for new or existing training notifications
1) Adding "Login" links to existing training notifications
If you're currently editing an existing training notification and would like to quickly add a clickable "Login" link for your users so they can log in to their training, follow the below steps:
- Select the "Login" link string of text. This text typically looks like "[[LOGIN_LINK]]?email=[[email]]".
- Click the "Link" button.
- For Link Type, select URL. For Protocol, select Other.
- Click "OK".
2) Adding any links to new or existing training notifications
There are two ways to add links to training notifications.
To get started, navigate to the Training > Notification Templates area and open an existing training notification template or create a new one.
Then, using the WYSIWYG ("what you see is what you get") editor, follow the below steps:
1) The first way is to click on the "Link" icon in the WYSIWYG toolbar. This will open a pop-up window for you to create your link.
In the pop-up window, use the Link Info tab to fill in the following fields to create your link:
Display Text: This is customizable text that will display in replace of the link URL. The Uniform Resource Locator (URL) is a unique web address that navigates users to content on the Internet.
- If you are using a URL link type and leave this field blank, it will automatically populate as the URL you input in the URL field.
- If you are using a Link to anchor in the text link type and leave this field blank, it will automatically populate as the name of the anchor you created. This Link Type is not typically used in training notifications.
- If you are using an E-mail link type and leave this field blank, it will automatically populate as the e-mail you input in the E-mail Address field.
Link Type: This is the type of content your link navigates to. There are three options to choose from.
- URL
- Link to anchor in the text
Protocol: This field will be visible if a URL link type is selected. The protocol indicates how your request is transmitted or transferred. There are five options to choose from.
- http://
- https://
- ftp://
- news://
- <other>
URL: This field will be visible if a URL link type is selected.
Once all of the fields are complete, click “OK” and your link will be visible in the body of the Training Notification Template.
2) The second way to add links is through the source code. The source code is where you can customize templates using HTML. To do this, click “Source”, located on the top-left of the WYSIWYG toolbar.
A link is created in HTML by using the “a” tag. Below is an example and brief description of each HTML element used for creating a link:
<a href=" ">This is my link!</a>
- <a>
The opening “a” tag indicates the start of a link. - </a>
The closing “a” tag indicates the end of a link. - href=" "
The hypertext reference (href) indicates the link’s destination. You want to place the web address, or URL, of your link inside the “href” quotation marks. - This is my link!
The display text goes between the open and close “a” tags. It can be a URL or descriptive text.
Visit here to learn more about creating links in HTML.
3) Wrapping training notification placeholders (Example: Login, Passwordless Login) in links, for new or existing training notifications
In your training notifications, you may want to wrap the "Login" or "Passwordless Login" placeholders in a link.
There are two ways to do this. Linking a training notification placeholder can be done from the "Link" pop-up window or from within the source code of the Training Notification Template.
1) To link a training notification placeholder using the "Link" pop-up window, we recommend the settings below:
Display Text: [[PASSWORD-LESS_LOGIN_LINK]]
Link Type: URL
Protocol: <other>
URL: [[PASSWORD-LESS_LOGIN_LINK]]
Note:
When using the "Link" pop-up window to link a training notification placeholder, only select <other> for the Protocol. If you do not choose <other>, the link will break due to multiple protocols in the URL. This happens because our placeholder (Example: [[LOGIN_LINK]]) already contains a built-in protocol (Example: https://training.knowbe4.com/, where https:// is the protocol).
2) To link a training notification placeholder from within the source code, you'll need to wrap the placeholder in HTML. To do this, apply the HTML “a” tag. For the “href”, you input the placeholder in between the quotation marks. See the below example:
<a href=“[[LOGIN_LINK]]?email=[[EMAIL]]">Click here to log in for training!</a>
The above link will navigate to the KnowBe4 training login page. The addition of our [[EMAIL]] placeholder will make it unique to the user, as it will populate their email address in the Email field on the login page.
Comments
0 comments
Article is closed for comments.