section
The properties and settings of a section. The section object can be used to nest blocks and components within a section.
Properties
The section ID.
For dynamic sections in JSON templates, the section IDs are dynamically generated by SHOPLINE.
For static sections, the section IDs are the names of the section files. For example, the ID for rich-text.html is rich-text.
The 1-based index of the current section within its container.
The 0-based index of the current section within its container.
The type of the section, which corresponds to the file name of the section.
The number of blocks contained in the section.
The settings of the section.
Was this article helpful to you?