Interested in sponsoring this lovely little spot?

Toggle Fieldtype

A nice little toggle switch generally used to manage settings-type variables. It stores true or false and is delightfully uncomplicated, just like our relationship with yogurt.

toggle.png Fieldtype UI
Behold! The Toggle Fieldtype!

Data Structure

Flicking the toggle to the right sets to the value to true, left to false.

should_it: true


Toggles are usually used to control logic, so you can combine them with {{ if }} statements in your templates to do all manner of wizardy.

{{ if should_it }} It does {{ /if }}
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →