---
title: "section"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/sline/object/section'
  md: 'https://developer.shopline.com/docs/sline/object/section.md'
---

# section


    The properties and settings of a section. The `section` object can be used to nest blocks and components within a section.

    



    <div>
    
## Properties

        
<ObjectProperty 
    name="id"
    types={[<Mdx>string</Mdx>]}
>
<ObjectSummary>
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`.
</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="index"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The 1-based index of the current section within its container.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="index0"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The 0-based index of the current section within its container.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="type"
    types={[<Mdx>string</Mdx>]}
>
<ObjectSummary>
The type of the section, which corresponds to the file name of the section.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="blocks_size"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The number of blocks contained in the section.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="settings"
    types={[<Mdx>[settings](https://developer.shopline.com/docs/sline/object/settings.md)</Mdx>]}
>
<ObjectSummary>
The settings of the section.


</ObjectSummary>
</ObjectProperty>
        
    
    </div>


