Template Fieldtype

Used for choosing an entry’s template. Be sure to name the field template if you want it to be able to change the template (it's a special variable name).

template.png Fieldtype UI
Behold! The Template Fieldtype!

Overview

This is generally used as a "system" field to control an entry's template. It points to the resources/views directory and will list all available templates therein.

Options

hide_partials

boolean

Since partials are rarely intended to be used as templates, they are hidden by default.

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →