Interested in sponsoring this lovely little spot?

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.

current_template
edit_url
id
last_modified
permalink
published
slug
url

Entry

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

collection
date
datestamp
datestring
has_timestamp
is_entry
order
order_type
timestamp

Term

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

entries_count
is_term
taxonomy

Asset

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

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

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.

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