Liquid Template Variables - article

From Spiffy Stores Knowledge Base

Revision as of 16:46, 12 September 2008 by Admin (talk | contribs) (New page: The liquid template variable ''article'' has the following attributes: == <code>article.id</code> == Returns the unique internal number of the article. This is normally only for interna...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The liquid template variable article has the following attributes:

article.id

Returns the unique internal number of the article.

This is normally only for internal usage.

article.title

Returns the title of this article.

article.author

Returns the name of the author of this article.

article.content

Returns the content of this page.

article.created_at

Returns the creation date and time of the article.

{{ article.created_at | date: "%Y %h" }}

article.url

The is the relative URL address of the article.

article.type

Returns the type of the object, in this case, 'article'.