# link

> Shoplazza Theme 中的 link Liquid 对象：表示店铺菜单中的一个链接，含渲染导航所需的属性。

菜单中的链接。

| Properties | Type                                                                                                          | Description                                 |
| :--------- | :------------------------------------------------------------------------------------------------------------ | :------------------------------------------ |
| `id`       | [string](../basics/liquid-types#string)                                                                           | 链接项的 id。                    |
| `levels`   | [number](../basics/liquid-types#number)                                                                           | 链接下的嵌套层级数。 |
| `object`   | -                                                                                                             | 与链接关联的 object。        |
| `title`    | [string](../basics/liquid-types#string)                                                                           | 链接项的标题。                 |
| `type`     | [string](../basics/liquid-types#string) from a set of values, refer to [type values](./link_item#type-可选值) | 链接项的类型。                  |
| `url`      | [string](../basics/liquid-types#string)                                                                           | 链接项的 URL。                   |

### type 可选值

| Possible values | Description                                                                      |
| :-------------- | :------------------------------------------------------------------------------- |
| `article`       | 链接指向一篇文章。                                                   |
| `blog`          | 链接指向一个博客。                                                       |
| `collection`    | 链接指向一个 collection。                                                 |
| `home`          | 链接指向首页。                                                |
| `order_lookup`  | 链接指向订单验证和查询页面。                                |
| `page`          | 链接指向一个页面。                                                       |
| `product`       | 链接指向一个商品页面。                                               |
| `web`           | 链接指向外部网页、商品类型或供应商 collection。 |

```json title="对象"
{
  "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"
  }
}
```
