Helpful Tips
This page provides practical tips for making your templates more flexible and reusable across multiple sites.
Using Site-Specific Variables for Emails
You can create custom site variables to allow a single template to work across multiple sites. This is particularly useful for sending emails to site-specific addresses without hardcoding them.
Step 1: Create a Site Variable
- Go to the Sites page in the platform.
- Add a new variable, for example:
| Variable Name | Value |
|---|---|
| site_email | watersidehotel.com |
You can create a different value for each site:
| Site | site_email |
|---|---|
| Waterside Hotel | watersidehotel.com |
| Carlton Hotel | carltonhotel.com |
Step 2: Use the Variable in Your Template
When defining recipients in your template emails, use the variable:
reception@£{site_email}
manager@£{site_email}
When the handover is generated, this will automatically resolve to the correct email for each site:
Waterside Hotel: reception@watersidehotel.com
Carlton Hotel: reception@carltonhotel.com
Benefits
- Reusable templates: One template can be used for multiple sites.
- Less maintenance: No need to update emails if the site changes.
- Consistency: Ensures correct email addresses are always used.
Pro Tips
- Keep variable names clear and descriptive.
- Test your template with multiple sites to ensure the variables resolve correctly.
- Combine site variables with other built-in or custom variables to create fully dynamic templates.
Using site-specific variables like
site_emailmakes your templates smarter and ensures that communication always goes to the right place.