Configs

What is a config?

A config stores a JSON representation of the page layout created via the theme editor.


Location

Configs should be created at the following location in your local storage disk:

"themes/{$theme}/blueprint/presets/config/{$key}.json"

When you have made unsaved changes to the config a copy will be temporarily made at:

"blueprint/{$theme}/temp/versions/{$previewVersion}/config/{$key}.json"

And when you save any changes a new config will be stored at:

"blueprint/{$theme}/versions/{$version}/config/{$key}.json"

Where $theme is your store's theme, $key is the configs name, $version is the current active version (defaults to main) and $previewVersion is the current preview version (auto-generated).


Example

{
    "containers": [
        {
            "id": "container__6ca06df5184f4189b8e741baf8a07857",
            "columns": [
                {
                    "id": "column__e226403543f44bb4ae2e692ba02acc58",
                    "sections": [
                        {
                            "id": "section__announcement-bar__f79ee129ad1f4df49dd0b9532a74d7bd",
                            "key": "announcement-bar",
                            "blocks": [
                                {
                                    "id": "block__message__82eb8b4a2e524a4fb7ab0e69a6c1c39f",
                                    "type": "message"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}