Liquid Template Variables - collection

From Spiffy Stores Knowledge Base

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

The liquid template variable collection has the following attributes:

collection.id

Returns the unique internal number of the collection.

This is normally only for internal usage.

collection.handle

This is the collection handle. The handle uniquely identifies the collection in the URL address.

The handle is usually the collection's title in lower case with all blanks replaced by a dash. "Summer Sale" would have the handle "summer-sale".

collection.title

Returns the title of this collection.

collection.description

collection.products

collection.all_products

collection.tags

collection.all_tags

collection.next_product

collection.previous_product

collection.url