{{ request }}

The request object is available on every page, and contains information regarding the request that may be useful for serving and rendering the page.

Properties

string object_type
Will always be "request".
true/false is_valid
True if the request is for a Marketpath CMS Page. False if it is a 404 page.
string domain
The domain of the current request.
true/false use_ssl
True if the page is being loaded via the 'https' scheme.
string path
The part of the URL after the domain, including the leading '/' but not including the query string parameters or hash.
string query_string
Everything after the '?' character in the URL (excluding the hash, of course).
query_params query_params
Object containing all of the query string parameters for the current page.
string url
The full URL of the current page - including the scheme, the domain, the path, and the query string.
int year
The year that the server began processing the request.
int month
The month of the year that the server began processing the request (1 through 12).
int day
The day of the month that the server began processing the request (1 through 31).
int hour
The hour that the server began processing the request (0 through 23).
date date
The full date that the server began processing the request.
string timezone
The name of the current timezone used to display dates (eg: PST or PDT).
string timezone_full
The full name of the timezone used to display dates (eg: "America/Indianapolis").
string user_agent
The User Agent supplied by the current request.
headers headers
Object containing all of the headers sent with the current request.
cookies cookies
Object containing all of the cookies for the current request.
true/false is_preview
True if the request is being served from the preview environment. False if the request is being served from the live environment.

Developer Overview

Liquid Markup