Notification templates¶
Roles with access
Administrators have access (administrators only).
This screen (Notifications Templates) lets administrators manage the text of the notices shown to users. It is divided into two sections: custom templates, which can be created, edited or deleted, and system templates, which come preconfigured and can be edited but not deleted.
A template only contains the text. When and to whom it is shown is configured in Notice management. Templates are also used as the text of the legal notice of the Policies, which the user sees as described in Terms of use.
Screen elements¶
- Custom Notification Templates: templates created by the administration. Each row shows Name, Description, Default language and Action, with the pencil (Edit notification template) and the cross (Delete notification template). The Add template button creates a new template.
- System Notification Templates («Preconfigured templates»): system templates, such as «Email verification», «Password recovery» or those of the notices about unused desktops and deployments. They only have the pencil: their content can be edited, but they cannot be deleted.
- Clicking the + button of a row unfolds a preview of the message.
The template window (Add Notification Template or Edit Notification Template) has two sections:
- Name and description: Name * (required), Language * (language of the text being edited; languages that already have text carry an asterisk), the Default checkbox (language used when the user has no language set) and Description.
- Message: Title, Body (in HTML) and Footer, with the Preview button (previews the HTML) and, only when editing, Apply (saves the message in this language). When editing, the Parameters (Click to copy) list shows the variables the template supports; clicking them copies them so they can be pasted into the body.
Creating a custom template¶
What it is for: Defines the text of a new notice.
Where it is: Add template button of the Custom Notification Templates section.
Steps:
- Click Add template.
- Fill in the Name field.
- (Optional) Add a Description.
- Select the language in Language. The first time, it is marked as Default and cannot be changed.
- In the Message section, enter the Title, the Body and the Footer. You can click Preview to check how it looks.
- Click Add Notification Template.
What it checks first: That the required fields are filled in and that the template has text in the default language. The HTML of the body and the footer is sanitized before saving.
What happens next: The template appears in Custom Notification Templates and can be chosen in the Notification Template field of a notice.
Editing a template¶
What it is for: Changes the name, the description or the text of a template, custom or system, or adds a language to it.
Where it is: Pencil in the Action column.
Steps:
- Click the template's pencil.
- Choose the language in Language and change the Title, the Body or the Footer. The Parameters variables can be copied into the body.
- Click Apply to save the message of the current language. Repeat for each language.
- Click Edit Notification Template to confirm the changes.
What it checks first: That the template exists and that the message has a title and a body.
What happens next: The changes are saved, and the notifications that use the template show the new text.
Deleting a custom template¶
What it is for: Removes a custom template. System templates cannot be deleted.
Where it is: Cross (Delete notification template) in the Action column of Custom Notification Templates.
Steps:
- Click the template's cross.
- Confirm the operation.
What it checks first: That the template exists. If it is not found, an error is raised.
What happens next: The template is deleted and is no longer available for notifications.