Created
April 1, 2020 10:00
-
-
Save flug/063dd85bebe730c6572741bb6e24240c to your computer and use it in GitHub Desktop.
This file contains 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
showcases: | |
name: Showcases | |
slug: showcases | |
singular_name: Showcase | |
singular_slug: showcase | |
description: The 'Showcases' is not particularly useful in most cases, but it does a good job of showcasing most of the available fieldtypes. | |
fields: | |
title: | |
type: text | |
class: large | |
required: true | |
pattern: ".{2,255}" # see: http://html5pattern.com/ | |
error: "The Title field is required, and must contain at least 2 characters" | |
placeholder: "Placeholder for the title" | |
group: Text | |
slug: | |
type: slug | |
uses: [ title ] | |
html: | |
type: html | |
height: 150px | |
prefix: This is the prefix for the WYSIWYG field. | |
postfix: This is the postfix for the WYSIWYG field. | |
separator: true | |
textarea: | |
type: textarea | |
postfix: "This is a plain text area. the contents will <em><strong>not</em></strong> be processed." | |
markdown: | |
type: markdown | |
postfix: "This field gets parsed as <a href='https://help.github.com/articles/markdown-basics'>Markdown</a>, when rendered on the site." | |
email: | |
type: email | |
info: "This is an <i>info box</i> shown as a popover next to the field label." | |
embed: | |
type: embed | |
group: Media | |
image: | |
type: image | |
extensions: [ gif, jpg, png ] | |
alt: true | |
placeholder: https://source.unsplash.com/1280x768/?animal,koala,kitten,puppy,cute/__random__ | |
imagelist: | |
type: imagelist | |
file: | |
type: file | |
group: Files | |
filelist: | |
type: filelist | |
limit: 5 | |
checkbox: | |
type: checkbox | |
label: "This is a checkbox" | |
group: Other | |
datetime: | |
type: date | |
mode: datetime | |
date: | |
type: date | |
integerfield: | |
type: number | |
mode: integer | |
step: 0.25 | |
floatfield: | |
type: number | |
mode: float | |
selectfield: | |
type: select | |
values: [ foo, bar, baz ] | |
multiselect: | |
type: select | |
values: [ A-tuin, Donatello, Rafael, Leonardo, Michelangelo, Koopa, Squirtle ] | |
multiple: true | |
postfix: "Select your favourite turtle(s)." | |
selectentry: | |
type: select | |
values: entries/{title} (№ {id}, {status}) | |
postfix: "Select an entry" | |
autocomplete: true | |
sort: title | |
hiddenfield: | |
type: hidden | |
group: internal | |
datafield: | |
type: data | |
set: | |
type: set | |
group: Sets | |
fields: | |
title: | |
type: text | |
textarea: | |
type: textarea | |
collection: | |
type: collection | |
group: Collections | |
fields: | |
set: | |
type: set | |
fields: | |
title: | |
type: text | |
textarea: | |
type: textarea |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment