Appearance
Email settings
Upon email template initialization, do the following:
Open the current directory with your email project.
Find the
.jsonfile with settings as shown below:
{
"name": "myEmail",
"id": "11fb8d62-6796-4313-8c0a-6f469fd5f0f6",
"localization": {
"current": "eng",
"original": "",
"langs": [
"eng"
]
},
"browserslist": ["last 2 versions"]
}This table displays the information for every field in the settings.json file.
| Field name | Description |
|---|---|
| name | The name of the email template |
| id | The unique id of the created email |
| localization | Information about current localization, languages and country of the email template |
| restrictComponentsAppendingInto | An array to specify email sections where adding components is restricted (see the tip below the table) |
| app | The main root file, where a general logic is described |
| targetClm | The name of the clm for which the email template was created |
Component adding restrictions
To restrict the ability to add components, add the restrictComponentsAppendingInto array to the settings.json with the following values:
["app"]: restricts adding components to
App.vue.["block"]: does the same for email blocks.
["module"]: restricts adding components to email modules.
Combine the values to specify several sections at a time.
For example
"restrictComponentsAppendingInto": ["app"] to restrict adding components to the root (components adding is allowed only to blocks and modules).
"restrictComponentsAppendingInto": ["app", "module"] to restrict adding components to the root and modules (components adding is allowed only to blocks).
Once the email template is initialized, open the current directory with your email project and find the .json file with described settings.
json
{
"name": "myEmail",
"id": "81ta-KDyV-v811-HT3t",
"localization": {
"current": "en",
"original": "",
"langs": ["en"],
"country": ""
},
"app": "./App.vue",
"editor": {
"restrictComponentsAppendingInto": [
"app"
]
},
"targetCLM": {
"name": "MailChimp",
"code": "mailchimp"
}
}This table displays the information for every field in the settings.json file.
| Field name | Сontent |
|---|---|
name | The email template name |
id | The unique ID of the created email |
localization | Information about current localization, languages, and country of the email template |
app | The main root file with the common logic description |
targetCLM | The name and code of the target system for which the email template was created |