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_layout | |
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 |
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.
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 |