Open navClose nav

Include Template

The Include Template field type allows you include fields that you have already specified in another front matter template.

This can be useful for organizing your front matter and consolidating frequently-used fields: for example, including an seo front matter template that contains description, keyword, and thumbnail data.

Options

  • General
    • Label — the human-friendly label shown above the input field in the editor
    • Namethis field is not used for this field type
    • Description — a human-friendly description of what the field does and/or instructions for your editors
    • Hidden — hides the filed in the editor; but allows developers to set default values or maintain the field for legacy purposes.
    • Template — the front matter template whose fields you wish to include.

Be careful not to include a template that would eventually include the current template.

Config Files

You can configure this field in Front Matter Template Config Files as follows:

type: include
template: seo   # The slug of the included front matter template
label: SEO
name: seo

Last updated on April 23, 2018