Variables

Access data from current URL, user, entry, site, date, and more right in your templates.

Content

"Content" encompasses data types that can be mapped to a URL. These include Entries and Taxonomy Terms. Any time you encounter one of these, the following variables will be available, as well as any fields you've defined in the blueprint.

permalink
published
slug
url
last_modified
edit_url
id
current_template

Entry

Entries have access to all the Content variables, and these:

order
order_type
timestamp
collection
date
datestamp
datestring
has_timestamp
is_entry

Term

Taxonomy terms have access to all the Content variables, and these:

taxonomy
is_term
entries_count

Asset

Assets have access to all the Content variables, and these:

is_video
basename
path
size
size_bytes
size_gigabytes
size_kilobytes
size_megabytes
width
extension
is_image
filename
focus
focus_css
height
is_asset

System

System variables are available at any time, regardless of whether the URL you are on is for content (eg. an Entry or Term) or if it has been created using a route.

last_segment
now
old
post
response_code
segment_x
site
sites
environment
config
csrf_field
csrf_token
current_uri
current_url
get
get_post
homepage
xml_header
current_template