Liquid Template Variables - blogs

From Spiffy Stores Knowledge Base

Revision as of 17:32, 12 September 2008 by Admin (talk | contribs) (New page: The liquid template variable ''blogs'' contains a collection of all of this shop’s blogs and articles. By calling a blog’s handle on the ''blogs'' variable, you will either receive ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The liquid template variable blogs contains a collection of all of this shop’s blogs and articles.

By calling a blog’s handle on the blogs variable, you will either receive a blog object.

For example:

<ul>
{% for article in blogs.myblog.articles  %}
  <li>{{ article.title }}</li>
{% endfor %}
</ul>

This lists all article titles for the blog called myblog.