The Template Editor interface in the back office can be customized for each template through the editor.json file in the template folder.
The customizations you can apply to the Template Editor are:
The editor.json file has the following shape:
{
"format": "2020",
"sections": [
{
"name": "logo-and-notes"
},
{
"name": "filters"
},
{
"name": "menus",
"menus": [
{
"menu": "MainMenu",
"label": {
"en": "Main menu",
"it": "Menù principale"
}
},
…
]
},
{
"name": "banners",
"locations": [
{
"location": "HomePageSlide",
"label": {
"en": "Home page slide",
"it": "Slide sulla home page"
}
},
…
]
},
{
"name": "html-and-css"
},
{
"name": "colors"
},
{
"name": "translations"
},
{
"name": "variables",
"label": {
"en": "Settings",
"it": "Impostazioni"
},
"variables": [
{
"name" : "ShowPromotions",
"type" : "checkbox",
"label" : {
"en" : "Display promotions on the home page",
"it" : "Mostra le promozioni sulla home page"
},
"default" : true
},
…
]
}
]
}
The editor can include the following sections:
| Name | Description |
"logo-and-notes" |
Site logo and notes in the footer |
"filters" |
Product search filters |
"menus" |
Menus |
"banners" |
Banners |
"html-and-css" |
HTML and CSS sources |
"colors" |
Colors |
"translations" |
Translations |
"variables" |
Custom variables |
Only one instance of each section can be present, except for custom variables where multiple "variables" sections can appear.
The sections are displayed in the editor in the order they appear in editor.json.
Define the custom variables