Liquid Template Variables - article: Difference between revisions

From Spiffy Stores Knowledge Base
Jump to: navigation, search
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...
 
Admin (talk | contribs)
mNo edit summary
Line 28: Line 28:


The is the relative URL address of the article.
The is the relative URL address of the article.
== <code>article.blog</code> ==
This is the [[Liquid Template Variables - blog|blog]] that this article belongs to.


== <code>article.type</code> ==
== <code>article.type</code> ==


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

Revision as of 15:48, 15 March 2010

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.blog

This is the blog that this article belongs to.

article.type

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