Help

Template layouts>
Close icon

Template layouts

Template layouts act as different page or email types that you can save and reuse. For example, you may have a certain layout for secondary web pages, or a blog post, or one for your email newsletter.

Visual theme editor

Adding and editing layouts in the theme editor:

JSON manifest

You can create layouts via code, in the form of JSON. For example:

{ "layouts": [ { "name": "Blog Post", "sections": ["hero", "post-intro", "post-article", "cta"] }, { "name": "Landing page", "sections": ["hero", "gallery", "cta"] } ] }

Include your layout a name. And then list the data-group variables for the sections you want in your layout, in the order you want them. You can add multiple layouts.

Custom fields

If you want to add additional content data that is not part of a layout, you can add custom fields to the layout, via the layout settings in the theme editor.

The following field types are available:

You can also add custom fields via code as well:

{ "layouts": [ { "name": "Blog Post", "sections": ["hero", "post-intro", "post-article", "cta"], "custom_fields": [ { "label": "Short summary", "default": "" } { "label": "Categories", "options": ["Featured", "Essentials", "Techniques"] }, { "label": "Thumbnail", "type": "image" }, ] }, { "name": "Landing", "sections": ["hero", "gallery", "cta"] } ] }

Support

Still have questions? Message us.