{{ checkbox }}

Represents a single true/false value

Properties

string object_type
Will always be "checkbox".
true/false is_valid
Always true.
string value
The value saved in the field. For checkbox fields you do not typically care about this - use checked instead.
html output
"yes"/"no".
html output_in_list
Same as output.
string field_id
The identifier for this field.
string default_value
The default value for this field if no value is specified.
true/false checked
True if the checkbox was checked.

Examples

<p>Show Sidebar? <strong>{{ page.show_sidebar }}</strong></p>
{% if page.show_sidebar.checked %}
	{% include "Sidebar" %}
{% endif %}

Developer Overview

Liquid Markup