Last active
December 11, 2015 04:29
-
-
Save 0xgdr/4545620 to your computer and use it in GitHub Desktop.
Statamic example fields.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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