[英]How to get all blogs in Shopify store on any page?
是的,您可以在任何主頁、收藏或產品頁面訪問 Shopify 中的全局變量。 這是全局變量列表到 Shopify
更多閱讀這里的文章。
並使用像
{% assign article = articles['news'] %}
{{ article.title | link_to: article.url }}
或使用 blogs global object 獲取使用句柄的文章。
{% for article in blogs.blog-handle.articles %}
{{- article.title | link_to: article.url }}
{% endfor %}
這里的 blog-handle 是你想要獲取文章的 handle slug。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.