在json方案shopify中使用liquid对象

在json方案shopify中使用liquid对象,json,schema,shopify,liquid,Json,Schema,Shopify,Liquid,在json scheme标记中是否有使用液体对象的选项? 例如,我有一个product-template.liquid文件,其中包含以下架构: {% schema %} { "name": "Product pages", "settings": [ { "type": "text", "id": "text_custom_1", "label": "Custom text" }, ] } {% endschema %} 我想要实

在json scheme标记中是否有使用液体对象的选项? 例如,我有一个product-template.liquid文件,其中包含以下架构:

{% schema %}
{
  "name": "Product pages",
  "settings": [
    {
      "type": "text",
      "id": "text_custom_1",
      "label": "Custom text"
    },
  ]
}
{% endschema %}
我想要实现的是获取产品的动态id作为自定义字段的id,如下所示:

{% schema %}
{
  "name": "Product pages",
  "settings": [
    {
      "type": "text",
      "id": "text_custom_1_{{%product.id%}}",
      "label": "Custom text"
    },
  ]
}
{% endschema %}

但这会导致json语法错误。在某种程度上可以实现上述功能吗?

不,在schema对象中没有使用任何液态代码的选项

如果您想要任何动态内容,最好使用块