跳到主要内容

link

菜单中的链接。

PropertiesTypeDescription
idstring链接项的 id。
levelsnumber链接下的嵌套层级数。
object-与链接关联的 object。
titlestring链接项的标题。
typestring from a set of values, refer to type values链接项的类型。
urlstring链接项的 URL。

type 可选值

Possible valuesDescription
article链接指向一篇文章。
blog链接指向一个博客。
collection链接指向一个 collection。
home链接指向首页。
order_lookup链接指向订单验证和查询页面。
page链接指向一个页面。
product链接指向一个商品页面。
web链接指向外部网页、商品类型或供应商 collection。
{
"type": "collection",
"source_id": "fee44eea-db43-466e-a57b-5ece05e830ee",
"url": "/collections/all-collections",
"title": "Shop",
"id": "46943745",
"levels": 2,
"object": {
"type": "collection",
"source_id": "275cefa9-db7e-4192-99be-0748b45f1a4a",
"url": "/collections/all-collections",
"title":"All Collections"
}
}