section
The properties and settings of section can only be used in html files under the /sections folder to read the configuration of section.
Properties
The ID of the section.
The ID for sections included through JSON templates are dynamically generated by Shopline.
The ID for static sections is the section file name without the .html extension. For example, a rich-text.html section has an ID of rich-text.
The 1-based index of the current section within its location.
The 0-based index of the current section within its location.
The type of the section.
The type for sections is the section file name without the .html extension. For example, a rich-text.html section has an type of rich-text.
The number of sub-blocks under the current section.
The settings of the section.