QUANTM7 Docs
QuillObjects

Page

The page object for static content pages, plus global page-level properties.

The page object holds the content of a static page like "About Us" or "Contact". It is present on page templates. A few global fields are also present on every template, not just pages.

Page properties

PropertyTypeDescription
page.idnumberThe unique page ID
page.titlestringThe page title
page.handlestringThe URL slug (e.g. about-us)
page.contentstringThe full HTML content
page.urlstringThe URL path
page.published_atstringWhen the page was published
page.authorstringThe page author, if set
page.featured_imageimageThe page's featured image
page.templatestringThe page template name
page.sectionsarrayThe page's body sections
page.metafieldsobjectCustom data fields
<article>
  <h1>{{ page.title }}</h1>
  <div class="page-content">
    {{ page.content }}
  </div>
</article>

Global page properties

These are available on every page, not just static pages:

PropertyTypeDescription
page_titlestringThe text for the <title> tag
page_descriptionstringThe meta description
canonical_urlstringThe canonical URL for this page
content_for_headerstringScripts and tags injected into the <head>

In your layout

These are mainly used in the layout file:

<head>
  <title>{{ page_title }} - {{ store.name }}</title>
  <meta name="description" content="{{ page_description }}" />
  <link rel="canonical" href="{{ canonical_url }}" />
  {{ content_for_header }}
</head>

Accessing all pages

The global pages object gives you access to every static page in the store:

{% for p in pages %}
  <a href="{{ p.url }}">{{ p.title }}</a>
{% endfor %}

You can also look up a page by its handle:

{% assign about = pages['about-us'] %}
<div>{{ about.content }}</div>

This is handy when you want to show text from one page inside a different template, like an "About" blurb in the footer.

On this page