Layouts
Get Layouts Sections
Changed onTo get the layouts sections with theme key<br>用theme_key請求佈局元件
get/themes/{theme_key}/layouts/sections
Request
- Base URLhttps://open.shopline.io/v1
- URLhttps://open.shopline.io/v1/themes/{theme_key}/layouts/sections
- AuthHTTP bearer
Path parameters
theme_keystring required
Theme Key
Query parameters
typesstring[] required
Types of layouts sections<br>佈局元件的種類
Response
OK
Example response
{
"items": [
{
"type": "text",
"schema": {
"tag": "section",
"class": "spaced-section",
"settings": [
{
"type": "switch",
"id": "include_margins",
"label": {
"zh-hans-cn": "使分区页边距与模板相同",
"en": "Make section margins the same as theme",
"id": "Buat margin bagian sama dengan tema",
"th": "ทำให้ระยะขอบของส่วนเหมือนกับธีม",
"vi": "Đặt lề của phần giống như chủ đề",
"ms": "Jadikan margin bahagian sama dengan tema",
"zh-hant-tw": "使節邊距與主題相同"
},
"default": true
}
],
"blocks": [
{
"type": "@app"
}
],
"presets": [
{
"category": {
"zh-hans-cn": "商品",
"en": "Product",
"id": "Produk",
"th": "สินค้า",
"vi": "Sản phẩm",
"ms": "Produk",
"zh-hant-tw": "商品"
},
"name": {
"zh-hans-cn": "商品分类",
"en": "Collection list",
"id": "Klasifikasi produk",
"th": "หมวดหมู่",
"vi": "Phân loại sản phẩm",
"ms": "Produk kategori",
"zh-hant-tw": "商品分類"
},
"settings": {
"title": "Collection list",
"col": 4,
"add_margin": true,
"show_divider": false
},
"blocks": [
{
"type": "collection",
"icon": "productCategories",
"settings": {
"image_display_area": "center_center"
}
},
{
"type": "collection",
"icon": "productCategories",
"settings": {
"image_display_area": "center_center"
}
},
{
"type": "collection",
"icon": "productCategories",
"settings": {
"image_display_area": "center_center"
}
},
{
"type": "collection",
"icon": "productCategories",
"settings": {
"image_display_area": "center_center"
}
}
]
}
],
"max_blocks": 15,
"is_blocks_fixed": true,
"type": "logo-list",
"icon": "image",
"feature_key": "page_builder_widget_xxx",
"order": 6,
"ui_options": {
"icon": "image",
"disabled_delete": true
}
}
}
]
}Changes
- info
endpoint added
- info