{
  "id": "section_123456",
  "type": "banner",
  "blocks": {
    "slide-a": {
      // ...
    },
    "slide-b": {
      // ...
    }
  },
  "block_order": [
    "slide-a",
    "slide-b"
  ],
  "settings": {
    "margin_top": 0
  }
}
You can access detailed information about the current section being rendered, including its settings and blocks, using the section object.
To learn more about sections, and using them in your theme, see Sections.

Syntax

{{ section.id }}

Properties

id
string
The unique identifier of the section. This is automatically generated in JSON template when they’re added by theme editor.
type
string
The type of the section.
blocks
object
The blocks of the section, accessible by their IDs.
block_order
string[]
The IDs of the blocks of the section, in the order they will appear.
settings
object
The settings of the section.

Scope

It’s accessible globally in any section or block.