Difference between revisions of "Liquid Template Variables - page"

From Spiffy Stores Knowledge Base

(New page: The liquid variable '''page''' has the following attributes:)
 
Line 1: Line 1:
 
The liquid variable '''page''' has the following attributes:
 
The liquid variable '''page''' has the following attributes:
 +
 +
== <code>page.id</code> ==
 +
 +
Returns the unique internal number of the page.
 +
 +
This is normally only for internal usage.
 +
 +
== <code>page.handle</code> ==
 +
 +
This is the page handle. The handle uniquely identifies the page in the URL address.
 +
 +
The handle is usually the page's title in lower case with all blanks replaced by a dash. "My Pretty Page" would have the handle "my-pretty-page".
 +
 +
== <code>page.title</code> ==
 +
 +
Returns the title of this page
 +
 +
== <code>page.content</code> ==
 +
 +
Returns the title of this page
 +
 +
== <code>page.published</code> ==
 +
 +
Returns true if the page is published and visible.
 +
 +
== <code>page.url</code> ==
 +
 +
The is the relative URL address of the page.
 +
 +
== <code>page.type</code> ==
 +
 +
Returns the type of the object, in this case, 'page'.

Revision as of 16:29, 12 September 2008

The liquid variable page has the following attributes:

page.id

Returns the unique internal number of the page.

This is normally only for internal usage.

page.handle

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

The handle is usually the page's title in lower case with all blanks replaced by a dash. "My Pretty Page" would have the handle "my-pretty-page".

page.title

Returns the title of this page

page.content

Returns the title of this page

page.published

Returns true if the page is published and visible.

page.url

The is the relative URL address of the page.

page.type

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