Templates¶
Templates define the content for notifications (e.g., task assignments, reminders). They can be used to create email notifications or generate documents from the scripting environment. Emakin provides default templates, but these can be customized or new templates created.
Creating Message Templates¶
- Navigate to the pool where you want to create a template.
- Click the "Add New Template" button to open the template editor.
-
Enter the following information:
- Name: The template's identifier.
- Subject: The template's subject line (for email notifications).
- Type: Selects the template type:
- Standard: Uses data templates for text-based content.
- XSLT: Uses XSLT for XML-based content.
-
Click "Done". "Edit" and "Details" buttons will appear. The "Details" button opens the content editor.
Standard Type Template¶
Standard templates use text with embedded data template expressions. Please refer to data templates for details.
XSLT Type Template¶
XSLT templates use XML for content definition. You can either use the default templates or create your own.
Rendering templates from scripts¶
Templates can be rendered from scripts using the $Templates
object.
1 |
|
For scripting details, refer to the $Templates
for more details.
Default Templates¶
Info
Email clients may restrict external resource loading (CSS, JavaScript) for security reasons. Keep styles inline within the HTML.
XSLT Templates¶
XSLT templates offer advanced formatting capabilities using XML transformations. Refer to external XSLT standard documentation for details.
Examples¶
Task Assigned Notification¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
Reminder¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|