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
Jason
January 21, 2019, 10:16am
2
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.
1 Like
But that’s ridiculous, why nobody cares about such a simple issue.
6 Likes
For the record, this is now possible. The first example given above now works .
> {% for page in pages %}> {{ page.title }}> {% endfor %}>