EN IT

Template Editor

The Template Editor interface in the admin can be customized for each template via 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 structure:

{
    "sections": [
        {
            "name": "logo-and-notes"
        },
        {
            "name": "filters"
        },
        {
            "name": "menus",
            "menus": [
                {
                    "menu": 3,
                    "label": {
                        "en": "Main menu",
                        "it": "Menù principale"
                    }
                },
                …
            ]
        },
        {
            "name": "banners",
            "locations": [
                {
                    "location": 5,
                    "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
                },
                …
            ]
        }
    ]
}

Editor sections

The editor can contain the following sections:

Name Description
"logo-and-notes" Site logo and footer notes
"filters" Product search filters
"menus" Menus
"banners" Banners
"html-and-css" HTML and CSS sources
"colors" Colors
"translations" Translations
"variables" Custom variables

There must be at most one of each section, except for custom variables where multiple "variables" sections can be present.

Sections will be shown in the editor in the order they appear in editor.json.