Add image field to material_type taxonomy

This commit is contained in:
Hadrian Candela 2022-05-18 11:58:09 +02:00
parent 539329bba0
commit d698ec937b
3 changed files with 124 additions and 0 deletions

View File

@ -0,0 +1,50 @@
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.material_type.image
- image.style.thumbnail
- taxonomy.vocabulary.material_type
enforced:
module:
- farm_material_type
module:
- image
- text
id: taxonomy_term.material_type.default
targetEntityType: taxonomy_term
bundle: material_type
mode: default
content:
description:
type: text_textarea
weight: 1
region: content
settings:
placeholder: ''
rows: 5
third_party_settings: { }
image:
type: image_image
weight: 6
region: content
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
name:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 7
region: content
third_party_settings: { }
hidden: { }

View File

@ -0,0 +1,34 @@
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.material_type.image
- taxonomy.vocabulary.material_type
enforced:
module:
- farm_material_type
module:
- image
- text
id: taxonomy_term.material_type.default
targetEntityType: taxonomy_term
bundle: material_type
mode: default
content:
description:
label: hidden
type: text_default
weight: 0
region: content
settings: { }
third_party_settings: { }
image:
type: image
weight: 5
region: content
label: above
settings:
image_style: ''
image_link: ''
third_party_settings: { }
hidden: { }

View File

@ -0,0 +1,40 @@
langcode: en
status: true
dependencies:
config:
- field.storage.taxonomy_term.image
- taxonomy.vocabulary.material_type
enforced:
module:
- farm_material_type
module:
- image
id: taxonomy_term.material_type.image
field_name: image
entity_type: taxonomy_term
bundle: material_type
label: Photos
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_directory: 'farm/[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg'
max_filesize: ''
max_resolution: ''
min_resolution: ''
alt_field: false
alt_field_required: true
title_field: false
title_field_required: false
default_image:
uuid: ''
alt: ''
title: ''
width: null
height: null
handler: 'default:file'
handler_settings: { }
field_type: image