Liquid Template Variables - linklists

From Spiffy Stores Knowledge Base

Revision as of 15:44, 15 September 2008 by Admin (talk | contribs) (New page: The liquid variable '''linklists''' contains a collection of all of the store's linklists. A linklist is ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The liquid variable linklists contains a collection of all of the store's linklists.

A linklist is a list of collected links.

Navigation menus are created using linklists.

You can access any linklist by using the linklist handle to index the linklists contained within the linklists variable.

<ul>
{% for link in linklists.navigation.links %}
   <li>{{ link.title | link_to: link.url }}</li>
{% endfor %}
</ul>

In this example, we generate a list of all links in a linklist called navigation.