Skip to content

Instantly share code, notes, and snippets.

@peterboorsma
Created February 26, 2013 11:56
Show Gist options
  • Save peterboorsma/5037959 to your computer and use it in GitHub Desktop.
Save peterboorsma/5037959 to your computer and use it in GitHub Desktop.
# This file defines the contenttypes on the website. See the documentation for
# details: http://docs.bolt.cm/content#defining-contenttypes
news:
name: News
singular_name: Newsitem
fields:
title:
type: text
class: large
slug:
type: slug
uses: title
image:
type: image
teaser:
type: html
height: 150px
video:
type: video
body:
type: html
height: 300px
record_template: entry.twig
listing_template: listing.twig
listing_records: 10
sort: datecreated DESC
recordsperpage: 7
rss:
enabled: true
feed_records: 10
feed_template: rss.twig
content_length: 250
tourdates:
name: Tourdates
singular_name: Tourdate
fields:
title:
type: text
class: large
slug:
type: slug
uses: title
image:
type: image
introduction:
type: html
height: 150px
template:
type: templateselect
filter: '*.twig'
sort: title
recordsperpage: 100
pages:
name: Pages
singular_name: Page
fields:
title:
type: text
class: large
slug:
type: slug
uses: title
image:
type: image
introduction:
type: html
height: 150px
body:
type: html
height: 300px
template:
type: templateselect
filter: '*.twig'
taxonomy: [ chapters ]
sort: title
recordsperpage: 100
songs:
name: Songs
singular_name: Song
fields:
title:
type: text
class: large
transtitle:
type: text
class: large
label: Translated title
slug:
type: slug
uses: title
lyrics:
type: html
height: 150px
translations:
type: html
height: 300px
video:
type: video
embed:
type: text
class: large
height: 150px
label: Paste an embedcode
tracknumber:
type: integer
label: Track Number
relations:
discs:
multiple: true
order: title
label: Choose a disc
record_template: entry.twig
listing_template: listing.twig
listing_records: 10
sort: datecreated DESC
recordsperpage: 50
discs:
name: Discs
singular_name: Disc
fields:
title:
type: text
class: large
slug:
type: slug
uses: title
year:
type: text
class: small
label:
type: text
class: small
image:
type: image
info:
type: html
height: 150px
video:
type: video
taxonomy: [ types ]
sort: title
record_template: entry.twig
listing_template: listing.twig
listing_records: 10
sort: datecreated DESC
recordsperpage: 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment