Tags

{{ 404 }}

{{ entries:listing }}

Parameters

  • folder
  • taxonomy
  • show_hidden
  • since
  • until
  • show_past
  • show_future
  • conditions
  • sort_by
  • sort_dir
  • limit
  • offset
  • paginate
  • group_by_date

Variables

  • count
  • date
  • datestamp
  • first
  • grouped_date
  • last
  • permalink
  • total_found
  • total_results
  • url

{{ entries:previous }}

Parameters

  • current

Variables

  • has_next

{{ entries:next }}

Parameters

  • current

Variables

  • has_next

{{ entries:pagination }}

Parameters

  • folder
  • taxonomy
  • show_hidden
  • since
  • until
  • show_past
  • show_future
  • conditions
  • sort_by
  • sort_dir
  • limit
  • offset
  • paginate
  • group_by_date

{{ entries:next }}

Parameters

  • current
  • wrap

Available Tags

  • has_previous

{{ entries:previous }}

Parameters

  • current
  • wrap

Available Tags

  • has_next

{{ entries:map }}

Parameters

  • folder
  • center_point
  • locate_with
  • zoom
  • map_id
  • clusters
  • type
    • entries
    • pages
    • all
  • *override all variables in location.yaml

{{ entries:meld }}

Parameters

  • field
  • action
    • sum (default)
    • average
  • precision

{{ get:[variable] }}

{{ get_content }}

Parameters

  • from
  • show_hidden
  • show_past
  • show_future
  • conditions

{{ get_files }}

Parameters

  • match
  • exclude
  • extension
  • in
  • not_in
  • file_size
  • file_date
  • depth
  • sort_by
    • file
    • type
    • size
  • sort_dir
    • asc (default)
    • desc
  • limit

Variables

  • file
  • filename
  • extension
  • size
  • size_bytes
  • size_kilobytes
  • size_megabytes
  • size_gigabytes
  • is_image

{{ get:post[variable] }}

{{ member:login }}

Parameters

  • return

{{ member:logout }}

Parameters

  • return

{{ member:profile }}

Parameters

  • member

{{ member:listing }}

Parameters

  • role
  • limit
  • offset
  • sort_by
  • sort_dir
  • username

{{ nav }}

Parameters

  • from
  • exclude
  • max_depth
  • include_entries
  • folders_only
  • include_content

Variables

  • first
  • last
  • is_current
  • is_parent
  • url
  • title
  • children
  • *recursive children*

{{ nav:exists }}

Parameters

  • from
  • max_depth
  • folders_only

{{ nav:count }}

Parameters

  • from
  • max_depth

{{ nav:breadcrumbs }}

Parameters

  • url
  • include_home
  • reverse
  • backspace

{{ obfuscate }}

{{ pages:listing }}

Parameters

  • folder
  • taxonomy
  • show_hidden
  • conditions
  • sort_by
  • sort_dir
  • limit
  • offset

Available Tags

  • first
  • last
  • index
  • zero_index
  • total_results

{{ pages:meld }}

Parameters

  • field
  • action
    • sum (default)
    • average
  • precision

{{ path }}

Parameters

  • src

post:[variable]

{{ redirect }}

Parameters

  • url

{{ switch }}

Parameters

  • between

{{ taxonomy:listing }}

Parameters

  • type
  • folder
  • min_count
  • sort_by
  • sort_dir
  • limit

Available Tags

  • name
  • url
  • slug
  • count
  • first
  • last
  • results
  • total_results

{{ theme:partial }}

Parameters

  • src
  • use_context

{{ theme:asset }}

Parameters

  • src
  • file

{{ theme:js }}

Parameters

  • src
  • file
  • cache_bust
  • tag

{{ theme:css }}

Parameters

  • src
  • file
  • cache_bust
  • tag

{{ theme:img }}

Parameters

  • src
  • file
  • alt
  • tag
  • cache_bust

{{ transform }}

Parameters

  • src
  • destination
  • quality
  • width
  • height
  • action (default:resize)
    • resize
    • crop
    • smart
  • ratio
  • upsize
  • pos_x
  • pos_y
  • rotate
  • flip
  • blur
  • pixelate
  • greyscale
  • type
    • jpg
    • png
    • gif

Fieldtypes

checkbox

Options

  • display
  • instructions

checkboxes

Options

  • display
  • instructions
  • options

color

Options

  • cancel_text
  • choose_text
  • instructions
  • local_storage_key
  • max_selection_size
  • palette
  • preferred_format
  • select_on_page
  • show_alpha
  • show_palette
  • show_palette_only
  • show_initial
  • show_input
  • show_selection_palette
  • starting_color

date

Options

  • display
  • instructions

file

Options

  • allowed
  • destination
  • display
  • instructions

grid

Options

  • display
  • fields
    • width
  • instructions
  • min_rows
  • max_rows
  • starting_rows

hidden

location

Options

  • allow_geolocation
  • cloudmade_api_key
  • cloudmade_tile_set_id
  • detect_retina
  • float_precision
  • foursquare_client_id
  • foursquare_client_secret
  • foursquare_radius
  • geolocation_zoom
  • instructions
  • interaction
    • scroll_wheel_zoom
    • double_click_zoom
    • box_zoom
    • touch_zoom
    • draggable
  • max_zoom
  • min_zoom
  • starting_latitude
  • starting_logitude
  • starting_zoom
  • use_foursquare

markitup

Options

  • display
  • default
  • height
  • instructions

radio

Options

  • display
  • default
  • height
  • instructions
  • options

redactor

Options

  • display
  • image_dir
  • instructions
  • resize
    • width
    • height
    • quality
    • upsize

section

Options

  • display
  • instructions

select

Options

  • display
  • options
  • instructions

suggest

Options

  • create
  • display
  • content
    • conditions
    • folder
    • hide_selected
    • label
    • show_draft
    • show_hidden
    • show_future
    • show_past
    • since
    • type
    • sort_dir
    • until
    • value
  • create
  • instructions
  • max_items
  • persist
  • placeholder
  • taxonomy
    • folder
    • type

templates

Options

  • display
  • default
  • instructions

text

Options

  • display
  • default
  • instructions

textarea

Options

  • code_formatting
    • true
    • false (default)
  • display
  • default
  • instructions

time

Options

  • display
  • instructions

users

Options

  • display
  • instructions

Reference

Conditionals

Statements

  • if
  • elseif
  • else
  • unless
  • unlesselse

Comparison Operators:

  • ==
  • !=
  • ===
  • !==
  • >
  • <
  • >=
  • <=

Logical Operators

  • !
  • ||
  • &&
  • and
  • or

Date Formatting

Format Returned Values
Taken from the PHP Manual
Day
d 01 to 31
D Mon through Sun
j 1 to 31
l Sunday through Saturday
N 1 (Monday) to 7 (Sunday)
S st, nd, rd or th
W 0 (Sunday) to 6 (Saturday)
Z 0 through 365
Month
F January through December
m 01 through 12
M Jan through Dec
n 1 through 12
t 28 through 31
Year
Y 1999 or 2013
y 99 or 13
Time
a am or pm
A AM or PM
g hour: 1 through 12
G hour: 0 through 23
h hour: 01 through 12
H hour: 00 through 23
i minutes: 00 to 59
s seconds: 00 through 59

Global Variables

  • current_date
  • current_url
  • environment
  • homepage
  • is_admin
  • is_{environment_name}
  • last_modified
  • last_segment
  • logged_in
  • next
  • now
  • page_url
  • permalink
  • prev
  • segment_x
  • taxonomy_name
  • taxonomy_slug
  • theme_path
  • username
  • _site_name
  • _site_root
  • _site_url

List Shortcuts

Markdown

Headers

# An <h1> tag
## An <h2> tag
###### An <h6> tag

Text

*This will be italic*
_This will also be italic
**This will be bold**
__This will also be bold__

Unordered Lists

* Item 1
* Item 2
  * Item 2a
  * Item 2b

Ordered Lists

1. Item 1
2. Item 2
  * Item 2a
  * Item 2b

Images

![Statamic Logo](/img/logo.png)

Links

<http://statamic>
or
[Statamic](http://statamic.com)

Email Addresses

<email@example.com>

Blockquotes

From the great Ron Swanson:

  > Never half-ass two things, whole-ass one thing.

Tables

First Header  | Second Header
------------- | -------------
Content Cell  | Content Cell
Content Cell  | Content Cell

Code Blocks

~~~ {.add .classes .here}
{{ loop }}
  {{ variable }}
{{ /loop }}
~~~

Inline Code

Check out `{{ transform }}`.

Mixing HTML

You can write HTML inside Markdown, and even parse it like so:

<article markdown="1">
  # Your Content
</article>

Variable Modifiers

Tag Pair Helper Parameters

  • sort_by
  • sort_dir
  • first
  • last
  • offset
  • index
  • limit
  • exclude
  • include

Tag Pair Helper Variables

  • first
  • last
  • index
  • zero_index
  • total_results
  • key
  • name & value

YAML

Strings

myName: Davey Crocket
protectedBy: "Quote marks >&'":"

String blocks

myHTML1: >
  <p>Use a greater symbol to strip new lines</p>

myHTML2: |
  <p>Or a pipe to perserve them</p>

Lists (Arrays)

shoppingList1:
  - scotch
  - beard trimmer
  - flowers

shoppingList2: [scotch, flowers]

Named Lists (String Key Arrays)

details:
  firstName: Ned
  lastName: Stark
  hometown: Winterfell

Associative Arrays

myList:
  -
    name: Abed
    school: Greendale
  -
    name: Troy
    school: Greendale

Associative Arrays with Named Keys

places:
  vacation:
    - Ireland
    - Australia
  work:
    - San Francisco
    - Atlanta

Comment

#status: live