All things Shopify and commerce
Hi, how can I get all pages from shopify shop in liquid template
This code doesn't work
{% for page in pages %}
<a href="{{ page.url }}">{{ page.title }}</a>
{% endfor %}
I can't use this variant:
{% for link in linklists.some-handle %} {% if link.object.description.size < 900 %} {{ link.object.title }} {% endif %} {% endfor %}
because the solution has to be universal
You need to use the linklists method as you can't iterate of the pages object. You could look into using AJAX with the storefront search results but that would have limited use cases.
But that's ridiculous, why nobody cares about such a simple issue.
For the record, this is now possible. The first example given above now works.
{% for page in pages %}
<a href="{{ page.url }}">{{ page.title }}</a>
{% endfor %}
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024