All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi,
I got a metaobject called "forfattare", which contains information on authors, which I show on product pages. In the metaobject definition I have enabled "Publish entries as web pages", which I have enabled in Online Store.
So now, if I browse to /pages/forfattare/[handle] I can see the entry.
But now I would like (both for seo purpose and visitor purpose) to show these pages somehow.
I tried to set up a theme section on a page template with this liquid:
{% for page in pages %}
<li> <a href="{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
But it only show the standard pages.
Is there a way to create a page that show the titles and links to all these dynamic pages?
With kind regards,
- Johan.
I actually found a Shopify blog post by Liam Griffin (How to Create an Index List for Metaobject Pages (2023) - Shopify), in regards to this, but the blog post are missing the essential code snippets... I have been in contact with Shopify support that should try to ask the blog management to fix the post, but to date no update.
I even reached out to Liam Griffin at X to ask him to update his blog post...
Can any of you guys replicate the code snippets he talks about..?
With kind regards,
- Johan.