# section

> Shoplazza Theme 中的 section Liquid 对象：暴露当前正在渲染的 section 的属性、settings 和 blocks。

section 的属性和 settings。

:::tip
要了解 sections 及其在主题中的使用方式，请参阅 [Sections](/docs/theme/architecture/sections/overview)。
:::

  
    
      
        Properties
      

      
        Type
      

      
        Description
      
    
  

  
    
      
        `blocks`
      

      
        an array of [block](./blocks)
      

      
        section 中的 blocks。
      
    

    
      
        `id`
      

      
        [string](../basics/liquid-types#string)
      

      
        section 的 ID。

        通过 JSON templates 包含的 sections，其 ID 由 Shoplazza 动态生成。
      
    

    
      
        `settings`
      

      

      

      
        section 的 [settings](/docs/theme/architecture/sections/section-schema#settings)。

        要了解如何访问 settings，请参阅[访问 settings](/docs/theme/architecture/settings/overview#访问设置)。
      
    
  

```json title="对象"
{
  "id": "1686734485738",
  "blocks": [],
  "settings": {
    "title": "Accessories list",
    "pc_per_row": 4,
    "md_per_row": 2,
    "spacing": {
      "pc": {
        "top": "40",
        "right": "",
        "bottom": "40",
        "left": ""
      },
      "mobile": {
        "top": "20",
        "right": "",
        "bottom": "20",
        "left": ""
      }
    }
  }
}
```
