Liquid Template Variables - pages

From Spiffy Stores Knowledge Base

Revision as of 16:20, 12 September 2008 by Admin (talk | contribs) (New page: The liquid variable '''pages''' contains a collection of all of this store's pages. You can access any page by using the page handle to index the '''pages''' variable. <pre><h1>{{ pages...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The liquid variable pages contains a collection of all of this store's pages.

You can access any page by using the page handle to index the pages variable.

<h1>{{ pages.about.title }}</h1>
<p>{{ pages.about.author }} says...</p>
<div>{{ pages.about.content }}</div>

This example allows you to access the content of the about page.

This can be used to "imbed" pages within any other template, or even the layout.