摘要:侧边栏显示对应的文案
当代码逻辑正确(文本字段排在第一位)但标题仍不更新时,通常由以下原因引起:
经过测试验证,使用通用 ID text 或 title 具有最高优先级的渲染权。
在不同 Block 之间使用相同的 id: "text" 是安全的,只要在同一个 Block 内唯一即可。
{
"type": "productType",
"name": "Product Type",
"settings": [
{
"id": "text", // 1. 新增:专供侧边栏标题抓取,解决显示问题
"type": "text",
"label": "Admin Label (Internal Use)"
},
{
"id": "type_text", // 2. 保留:原有 ID 保持不动,确保历史数据不丢失
"type": "inline_richtext",
"label": "Product Type Title"
},
{
"id": "product_url",
"type": "url",
"label": "Product Url"
}
]
}