{{ text }}

Field containing plain text input.

Properties

string object_type
Will always be "text".
true/false is_valid
True if the value is not empty.
string value
The raw unencoded value of the field - outputting the raw value may have unexpected results if the value contains HTML characters (ie: <, >, ' or ").
html output
The html encoded text of the field.
html output_in_list
Same as output.
string field_id
The identifier for this field.
html default_value
The default value for this field if no value is specified.

Examples

{% if page.subtitle.is_valid %}
	<h2 class="page_subtitle">{{ page.subtitle }}</h2>
{% endif %}

Developer Overview

Liquid Markup