Skip to content

Instantly share code, notes, and snippets.

@0xgdr
Last active December 11, 2015 04:29
Show Gist options
  • Select an option

  • Save 0xgdr/4545620 to your computer and use it in GitHub Desktop.

Select an option

Save 0xgdr/4545620 to your computer and use it in GitHub Desktop.
Statamic example fields.
type: date # see http://statamic.com/docs/control-panel/fieldsets#fieldsets-and-entries
hide: yes # hide page from Add Page list
fields:
categories:
display: Categories
required: false
type: tags
tags: # the template tag name -- in this example, {{ tags }}
display: Tags # the control panel field label (optional)
required: false # required: true/false for validation (optional, false by default)
default: # default value (optional)
type: tags # fieldtype (optional, text by default)
instructions: Add tags. # instructions added above the field
content:
display: Article Content
required: false
default: Default content goes here.
type: redactor
image_dir: assets/img
instructions: Add categories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment