# Human readable name of this type
name: Images

# Lowercase, underscored handle used to access this type
slug: images

# Explanatory text displayed in the back-office
description: Images can be realated to Services or Projects

# 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: title

# 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: ['john@example.com']

# Control the display of the content type in the back-office.
display_settings:
  seo: false              # display the SEO tab for the content entries
  advanced: false         # display the Advanced tab for the content entries
#   position: 1             # position in the sidebar menu
#   hidden: false           # hidden for authors?

# By default, the back-office displays the _label property (see label_field_name) of the content entry. This can be modified by writing your own Liquid template below:
# entry_template: '<a href="{{ link }}">{{ entry._label }}</a>' # The default template

# A list describing each field
fields:
- title: # The lowercase, underscored name of the field
    label: Title # Human readable name of the field
    type: string
    hint: Describe why someone should care about this Image
    localized: false

- file: # The lowercase, underscored name of the field
    label: File # Human readable name of the field
    type: file
    required: true
    localized: false

- services:
    label: Services
    type: many_to_many
    class_name: services
    inverse_of: images

- projects:
    label: Project
    type: many_to_many
    class_name: projects
    inverse_of: images

- category:
    label: Category
    type: select
    required: false
    hint: Mostly used to identify Before and After pictures for Projects
    select_options: ['Before', 'After', 'Service']



