schema类型4:业务数据选择器

业务数据选择器的schema,进行详细的说明

schema类型:业务数据选择器

业务数据选择器

  • section_item_type:menu: 菜单选择器(也可以使用简写类型:link_list(为了兼容shopify的定义方式))
  • section_item_type:product: 商品选择器
  • section_item_type:product_collection: 商品专辑选择器
  • section_item_type:product_collection_products: 商品专辑选择器-产品列表 (也可以使用简写类型:collection(为了兼容shopify的定义方式))
  • section_item_type:custom_page: 自定义页选择器(也可以使用简写类型:page(为了兼容shopify的定义方式))
  • section_item_type:blog_collection: 博客专辑选择器
  • section_item_type:blog_collection_articles: 博客专辑选择器-文章列表
  • section_item_type:custom_review: 评论选择器

详细说明

1.菜单选择器:section_item_type:menu

  • 也可以使用简写类型:link_list(为了兼容shopify的定义方式), 使用起来都是一样的
  • 选择某个菜单树
{
          "type": "section_item_type:menu",
          "id": "main_menu",
          "label": {
            "text": "主菜单",
            "lang_params": {
              "tw": "主菜單",
              "en": "Main menu"
            }
          },
          "default": ""
        }

2.商品选择器: section_item_type:product

  • 选择单个商品
{
          "type": "section_item_type:product",
          "id": "product",
          "label": {
            "text": "商品",
            "lang_params": {
              "en": "Product",
              "tw": "商品"
            }
          },
          "info": {
            "text": "此选项仅适用于布局3和布局6",
            "lang_params": {
              "en": "This option is use only for layout 3 & layout 6.",
              "tw": "此選項僅適用於佈局3和佈局6"
            }
          }
        }

选择商品后:

3.商品专辑选择器:section_item_type:product_collection

  • 选择单个商品专辑(只有商品专辑数据,不包含专辑下的商品列表数据)
  • 可以参看装修卡片:级联专辑
{
  "type": "section_item_type:product_collection",
  "id": "collection",
  "label": {
    "text": "专辑",
    "lang_params": {
      "en": "Collection",
      "tw": "專輯"
    }
  }
}

4.商品专辑选择器-产品列表:section_item_type:product_collection_products

  • 也可以使用简写类型:collection(为了兼容shopify的定义方式))
  • 选择专辑后,处理后的数据里面将包含专辑下的商品列表数据(可以参看装修卡片:级联商品)
{
      "type": "section_item_type:product_collection_products",
      "id": "collection",
      "label": {
        "text": "商品专辑",
        "lang_params": {
          "en": "Collection",
          "tw": "商品專輯"
        }
      }
    }

5.自定义页选择器:section_item_type:custom_page

  • 也可以使用简写类型:page(为了兼容shopify的定义方式)), 使用起来都是一样的
{
          "type": "section_item_type:custom_page",
          "id": "content_page",
          "label": {
            "text": "从页面获取标签内容",
            "lang_params": {
              "en": "Tab content from page",
              "tw": "從頁面獲取標籤內容"
            }
          }
        }

点击按钮,在自定义页面列表里面选择一个自定义页面,选择后如下:

6.博客专辑选择器:section_item_type:blog_collection

  • 选择一个博客专辑

7.section_item_type:blog_collection_articles: 博客专辑选择器-文章列表

  • 选择一个博客专辑,处理后的数据里面有专辑下的文章列表
{
      "id": "blog",
      "type": "section_item_type:blog_collection_articles",
      "label": {
        "text": "博客",
        "lang_params": {
          "en": "Blog",
          "tw": "部落格"
        }
      }
    }

8.section_item_type:custom_review: 评论选择器

Copyright © fecify.com 2025 all right reserved,powered by Gitbook该文件修订时间: 2025-09-09 11:39:43

results matching ""

    No results matching ""