{% for blog in blogs %} {% for article in blog.articles %} {{ article.title }} {% endfor %} {% endfor %}
There is another way also
If you don't mind creating a special link list, with links that point to all blogs, you could go like this:
{% for link in linklists.blogs.links %} {% assign blog = link.object %} {% for article in blog.articles %} {{ article.title }} {% endfor %} {% endfor %}
Hi Fayyaz, I'm trying to use this solution on a page template I've made - but it doesn't show anything - seems like the "blogs" object is empty?
I also tried the linklists method and that didn't work either. Does this only work on the blog.liquid templates? Because I'm trying to do it on a pages template.
Thanks in advance!
Hm, so I'm confused about that part - how and where are you actually declaring this linklist?
Am I completely getting the concept of linklists wrong?
User | Count |
---|---|
448 | |
187 | |
139 | |
61 | |
44 |