shopify - Shopify - 对收藏列表进行分页
问题描述
我在 Shopify 中有 100 多个系列。如何进行分页或无限滚动以显示此列表?不是集合中的产品列表,而是所有集合的列表。
解决方案
我遇到了同样的问题,这就是您对list-collections.liquid模板进行分页的方式。在此示例中,25可以与另一个整数或字符串limit交换。
{%- paginate collections by 25 -%}
...
{%- for collection in collections -%}
...
{%- endfor -%}
...
{%- endpaginate -%}
推荐阅读
- html - 使用邮政编码定位用户本地影院
- javascript - 有人可以在下面的代码行中解释一下这个 -1 !== y && x.push(y)
- node.js - 安装 Hyperledger Composer 时出错
- javascript - TypeError:无法读取 null 的属性状态
- python - 如何将列表/字典转换为数据框?
- angular - 在 WAS 服务器中部署 Angular js 应用程序的问题
- python - python 正则表达式来分隔字符串中的列表子字符串
- python-2.7 - 如何在python中匹配模式之前和之后提取文本?
- amazon-web-services - 如何按属性对 DynamoDB 行进行排序
- mysql - 查询 WHERE NOT IN (SELECT) INNER JOIN