mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
* Add Create a Custom Portal Module * Add Use Native Layout Features In Your Modules * Added changeset * Pascal's edits * Update guide imports on extension type pages * Changed livePreviewMode to a bool * Please for formatter * Rename file * Replace all remaining imports while we're at it * Finishing touch * Update docs/guides/extensions/modules-native-layout-features.md Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch> --------- Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
1.1 KiB
1.1 KiB
description, readTime
| description | readTime |
|---|---|
| A guide on how to build custom Email Templates in Directus. | 1 min read |
Email Templates
Templates can be used to add custom templates for your emails, or to override the system emails used for things like resetting a password or inviting a user.
1. Create a template file
Custom email templates are stored in the templates folder in your extensions folder. Every template is a
liquid file that can render whatever you want!
/extensions/templates/<template-name>.liquid
To replace a system template with your own, simply name it password-reset or user-invitation for the password reset
or user invite emails respectively.
::: tip Variables
When overriding the default email templates, make sure to include the url variable somewhere. A password reset email
wouldn't be that useful without the link to go reset your password!
:::
Guides
Learn how to build email templates with our official guides:
<script setup> import GuidesListExtensions from '@/components/guides/GuidesListExtensions.vue'; </script>