Skip to content

Commit

Permalink
🤖 Sync Liquid Docs Schema (#407)
Browse files Browse the repository at this point in the history
Co-authored-by: shopify-dev-bot[bot] <95105344+shopify-dev-bot[bot]@users.noreply.github.com>
  • Loading branch information
shopify-dev-bot[bot] authored Jan 11, 2024
1 parent f00c3ab commit d65f2f4
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions data/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -4002,7 +4002,7 @@
},
{
"name": "Complex types",
"description": "\nThe following metafield types return nested elements, or different elements depending on the metafield contents:\n\n- [`dimension`](/docs/api/liquid/filters/metafield_tag#metafield_tag-dimension)\n- [`file_reference`](/docs/api/liquid/filters/metafield_tag#metafield_tag-file_reference)\n- [`list.metaobject_reference`](/docs/api/liquid/filters/metafield_tag#metafield_tag-list.metaobject_reference)\n- [`list.single_line_text_field`](/docs/api/liquid/filters/metafield_tag#metafield_tag-list.single_line_text_field)\n- [`volume`](/docs/api/liquid/filters/metafield_tag#metafield_tag-volume)\n- [`weight`](/docs/api/liquid/filters/metafield_tag#metafield_tag-weight)\n",
"description": "\nThe following metafield types return nested elements, or different elements depending on the metafield contents:\n\n- [`dimension`](/docs/api/liquid/filters/metafield_tag#metafield_tag-dimension)\n- [`file_reference`](/docs/api/liquid/filters/metafield_tag#metafield_tag-file_reference)\n- [`list.metaobject_reference`](/docs/api/liquid/filters/metafield_tag#metafield_tag-list.metaobject_reference)\n- [`list.single_line_text_field`](/docs/api/liquid/filters/metafield_tag#metafield_tag-list.single_line_text_field)\n- [`metaobject_reference`](/docs/api/liquid/filters/metafield_tag#metafield_tag-metaobject_reference)\n- [`volume`](/docs/api/liquid/filters/metafield_tag#metafield_tag-volume)\n- [`weight`](/docs/api/liquid/filters/metafield_tag#metafield_tag-weight)\n",
"syntax": "",
"path": "/products/health-potion",
"raw_liquid": "",
Expand Down Expand Up @@ -4050,6 +4050,16 @@
"display_type": "text",
"show_data_tab": false
},
{
"name": "metaobject_reference",
"description": "Outputs an HTML element for the metaobject field specified by the required `field` parameter. The `field` parameter can reference only metafields of type `single_line_text_field`.\n",
"syntax": "metafield | metafield_tag: field: string",
"path": "/products/health-potion",
"raw_liquid": "{{ product.metafields.information.primary_ingredient | metafield_tag: field: 'name' }}",
"parameter": false,
"display_type": "text",
"show_data_tab": false
},
{
"name": "volume",
"description": "Outputs a `&lt;span&gt;` element with the following attribute:\n\n| Attribute | Value |\n| --- | --- |\n| `class` | `metafield-volume` |\n\nThe `&lt;span&gt;` element contains the following child elements:\n\n| Child element | HTML element | Attributes |\n| --- | --- | --- |\n| The volume value.&lt;br&gt;&lt;br&gt;If it's a decimal with more than two places, then it'll be formatted to have a precision of two with trailing zeros removed. | `&lt;span&gt;` | `class=\"metafield-volume_value\"` |\n| The volume unit. | `&lt;span&gt;` | `class=\"metafield-volume_unit\"` |\n",
Expand Down Expand Up @@ -4104,7 +4114,7 @@
},
{
"name": "Complex types",
"description": "\nThe following metafield types produce different output depending on the provided `field` parameter:\n\n- [`list.metaobject_reference`](/docs/api/liquid/filters/metafield_text#metafield_text-list.metaobject_reference)\n",
"description": "\nThe following metafield types produce different output depending on the provided `field` parameter:\n\n- [`list.metaobject_reference`](/docs/api/liquid/filters/metafield_text#metafield_text-list.metaobject_reference)\n- [`metaobject_reference`](/docs/api/liquid/filters/metafield_text#metafield_text-metaobject_reference)\n",
"syntax": "",
"path": "/products/health-potion",
"raw_liquid": "",
Expand All @@ -4121,6 +4131,16 @@
"parameter": false,
"display_type": "text",
"show_data_tab": false
},
{
"name": "metaobject_reference",
"description": "Outputs the metafield text for the metaobject field specified by the required `field` parameter. The `field` parameter can reference only metafields of type `single_line_text_field`.\n",
"syntax": "metafield | metafield_text: field: string",
"path": "/products/health-potion",
"raw_liquid": "{{ product.metafields.information.primary_ingredient | metafield_tag: field: 'name' }}",
"parameter": false,
"display_type": "text",
"show_data_tab": false
}
],
"summary": "Generates a text version of the metafield data.",
Expand Down

0 comments on commit d65f2f4

Please sign in to comment.