Skip to content

Instantly share code, notes, and snippets.

@did
Created November 24, 2014 09:59
Show Gist options
  • Select an option

  • Save did/d8bd764f07459635c609 to your computer and use it in GitHub Desktop.

Select an option

Save did/d8bd764f07459635c609 to your computer and use it in GitHub Desktop.
# Human readable name of this type
name: Videos
# Lowercase, underscored handle used to access this type
slug: videos
# Explanatory text displayed in the back-office
description: A description of the content type for the editors
# Slug of field used to identify entries by default, such as the title
label_field_name: title
# Valid values: manually, created_at, updated_at, or the slug of any field
order_by: manually
# Valid values: asc (ascending) and desc (descending). Set to asc by default.
# order_direction: asc
# Specify a field slug to group entries by that field in the back-office.
# group_by: <your field>
# Activate public 'create' API (e.g for a contact form)
# public_submission_enabled: false
# Array of emails to be notified of new entries made with the public API
# public_submission_accounts: ['[email protected]']
# A list describing each field
fields:
- title: # The lowercase, underscored name of the field
label: Title # Human readable name of the field
type: string
required: true
hint: Explanatory text displayed in the back office
localized: false
searchable: true
- course: # The lowercase, underscored name of the field
label: Course # Human readable name of the field
type: belongs_to
required: false
hint: Explanatory text displayed in the back office..
localized: false
# Slug of the target content type (eg post if this content type is a comment)
class_name: courses
- vimeo_id:
label: ID of the Vimeo video
type: string
hint: "Example: http://vimeo.com/8733915, this will be 8733915"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment