---
title: "all_collections"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/sline/object/all-collections'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/sline/object/all-collections.md'
---

# all_collections


    店铺的所有商品分类。

    单独使用该 object 不会产生输出，需配合 [get](https://developer.shopline.com/zh-hans-cn/docs/sline/filter/get.md) filter 一起使用。





    
## 例子

        
            

            传入分类 handle，返回对应的 [collection](https://developer.shopline.com/zh-hans-cn/docs/sline/object/collection.md) object。

            

            
<SlineExample path={''} objects={ 
    [""] 
}>
```sline
{{#var collection = all_collections | get("bottom") /}}
{{#link_to collection.url}}
  {{collection.title}}
{{/link_to}}
```
</SlineExample>
            
        
    
