Created
March 1, 2015 11:05
-
-
Save rossriley/0a2dc17108ac9f2f13b3 to your computer and use it in GitHub Desktop.
Bolt Contenttypes Using References
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 | |
field_defaults: &defaults | |
title: | |
type: text | |
class: large | |
slug: | |
type: slug | |
uses: title | |
image: &image_field | |
type: image | |
label: Main Image | |
postfix: "This is the main feature image used in listing pages" | |
teaser: | |
type: html | |
height: 150px | |
body: | |
type: html | |
height: 300px | |
fields: | |
<<: *defaults | |
gallery: | |
type: imagelist | |
label: "A list of additional images" | |
taxonomy: [ categories, tags ] | |
recordsperpage: 100 | |
work: | |
name: Work | |
singular_name: Work | |
fields: | |
<<: *defaults | |
gallery: | |
type: imagelist | |
label: "A list of additional images" | |
upload: work | |
image: | |
<<: *image_field | |
upload: work | |
taxonomy: [ disciplines, sectors ] | |
listing_template: work-list.twig | |
software: | |
name: Software | |
singular_name: Software | |
fields: | |
<<: *defaults | |
icon: | |
type: text | |
label: "This is the icon used in the software listing page" | |
image: | |
<<: *image_field | |
upload: software | |
taxonomy: [ systems ] | |
listing_template: general-list.twig | |
relations: | |
clients: | |
multiple: true | |
label: Select a Related Client | |
order: -id | |
clients: | |
name: Clients | |
singular_name: Client | |
fields: | |
<<: *defaults | |
image: | |
<<: *image_field | |
upload: clients | |
news: | |
name: News | |
singular_name: article | |
slug: latest | |
fields: | |
<<: *defaults | |
image: | |
<<: *image_field | |
upload: news | |
taxonomy: [ categories, tags ] | |
record_template: record.twig | |
listing_template: general-list.twig | |
listing_records: 10 | |
default_status: publish | |
sort: -datepublish | |
recordsperpage: 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment