Created
April 10, 2018 22:06
-
-
Save Raistlfiren/06c0cd262759b7cea600f56277377ef8 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
pages: | |
name: Pages | |
singular_name: Page | |
fields: | |
title: | |
type: text | |
class: large | |
group: content | |
slug: | |
type: slug | |
uses: title | |
image: | |
type: image | |
teaser: | |
type: html | |
height: 150px | |
body: | |
type: html | |
height: 300px | |
template: | |
type: templateselect | |
filter: '*.twig' | |
relations: | |
showcases: | |
multiple: true | |
order: title | |
label: Select a showcase | |
taxonomy: [ groups ] | |
recordsperpage: 100 | |
showcases: | |
name: Showcases | |
slug: showcases | |
singular_name: Showcase | |
singular_slug: showcase | |
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" | |
group: Text | |
slug: | |
type: slug | |
uses: [ title ] | |
html: | |
type: html | |
height: 150px | |
textarea: | |
type: textarea | |
postfix: "<p><em>This is a plain text area. the contents will not be processed.</em></p>" | |
markdown: | |
type: markdown | |
postfix: "<p><em>This field gets parsed as <a href='https://help.github.com/articles/markdown-basics'>Markdown</a>, when rendered on the site.</em></p>" | |
geolocation: | |
type: geolocation | |
group: Media | |
video: | |
type: video | |
image: | |
type: image | |
attrib: title # Note: retrieve this in your template with {{ record.values.image.title }} | |
extensions: [ gif, jpg, png ] | |
imagelist: | |
type: imagelist | |
file: | |
type: file | |
group: files | |
filelist: | |
type: filelist | |
checkbox: | |
type: checkbox | |
label: "This is a checkbox" | |
group: other | |
datetime: | |
type: datetime | |
default: "2000-01-01" | |
variant: inline | |
date: | |
type: date | |
default: "first day of last month" | |
variant: inline | |
integerfield: | |
type: integer | |
index: true | |
floatfield: | |
type: 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/id,title | |
postfix: "Select an entry" | |
autocomplete: true | |
sort: title | |
repeater: | |
type: repeater | |
group: repeater | |
limit: 3 | |
prefix: "<p>This allows you to create multiple sets of fields. Use the add button at the bottom to create a new empty set.</p>" | |
fields: | |
repeattitle: | |
type: text | |
repeatimage: | |
type: image | |
extensions: [ gif, jpg, png ] | |
repeatcontent: | |
type: html | |
relations: | |
entries: | |
multiple: false | |
label: "Choose an entry" | |
order: -id | |
format: "{{ item.title|escape }} (№ {{ item.id }})" | |
postfix: "By selecting an Entry, you're creating a bi-directional relationship to that Entry." | |
pages: | |
multiple: true | |
order: title | |
label: Select zero or more pages | |
taxonomy: [ categories, tags ] | |
show_on_dashboard: true | |
default_status: published | |
searchable: true | |
icon_many: "fa:gift" | |
icon_one: "fa:gift" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment