Replace field image with field media image on gleanings

This commit is contained in:
Keegan Rankin 2024-03-07 16:28:20 -08:00
parent f6a2958cdc
commit 40c6019375
6 changed files with 63 additions and 51 deletions

View file

@ -6,14 +6,14 @@ dependencies:
- field.field.node.gleaning.body
- field.field.node.gleaning.comment
- field.field.node.gleaning.field_image
- field.field.node.gleaning.field_media_image
- field.field.node.gleaning.field_publication_date
- field.field.node.gleaning.field_upload
- image.style.thumbnail
- node.type.gleaning
module:
- datetime
- file
- insert
- media_library_media_modify
- path
- text
id: node.gleaning.default
@ -37,37 +37,17 @@ content:
region: content
settings: { }
third_party_settings: { }
field_image:
type: insert_image
field_media_image:
type: media_library_media_modify_widget
weight: 3
region: content
settings:
insert_absolute: false
insert_styles:
focal_point_325x195: focal_point_325x195
focal_point_1300x650: '0'
focal_point_195x260: '0'
focal_point_2600x1300: '0'
focal_point_390x520: '0'
focal_point_650x390: '0'
focal_point_780x1040: '0'
fullwidth: '0'
inline: '0'
large: '0'
large_cropped: '0'
linkit_result_thumbnail: '0'
medium: '0'
small_square: '0'
square_thumbnail: '0'
thumbnail: '0'
link: '0'
icon_link: '0'
image: '0'
insert_default: focal_point_325x195
insert_width: null
insert_rotate: false
progress_indicator: throbber
preview_image_style: thumbnail
media_types: { }
form_mode: default
check_selected: false
replace_checkbox_by_order_indicator: false
multi_edit_on_create: false
no_edit_on_create: false
third_party_settings: { }
field_publication_date:
type: datetime_default
@ -134,3 +114,4 @@ content:
third_party_settings: { }
hidden:
comment: true
field_image: true

View file

@ -7,15 +7,14 @@ dependencies:
- field.field.node.gleaning.body
- field.field.node.gleaning.comment
- field.field.node.gleaning.field_image
- field.field.node.gleaning.field_media_image
- field.field.node.gleaning.field_publication_date
- field.field.node.gleaning.field_upload
- node.type.gleaning
- responsive_image.styles.narrow
module:
- datetime
- ds
- field_group
- responsive_image
- user
third_party_settings:
field_group:
@ -25,7 +24,7 @@ third_party_settings:
- node_title
label: 'Card content'
parent_name: ''
region: hidden
region: ds_content
weight: 1
format_type: html_element
format_settings:
@ -55,9 +54,10 @@ third_party_settings:
attributes: ''
link_attribute: ''
link_custom: ''
label: ''
regions:
ds_content:
- field_image
- field_media_image
- group_card_content
- field_publication_date
- node_title
@ -77,17 +77,13 @@ targetEntityType: node
bundle: gleaning
mode: card
content:
field_image:
type: responsive_image
label: hidden
field_media_image:
type: entity_reference_entity_view
label: above
settings:
responsive_image_style: narrow
image_link: content
image_loading:
attribute: eager
third_party_settings:
ds:
ds_limit: '1'
view_mode: default
link: false
third_party_settings: { }
weight: 0
region: ds_content
field_publication_date:
@ -102,6 +98,7 @@ content:
hidden:
body: true
comment: true
field_image: true
field_upload: true
links: true
search_api_excerpt: true

View file

@ -6,13 +6,13 @@ dependencies:
- field.field.node.gleaning.body
- field.field.node.gleaning.comment
- field.field.node.gleaning.field_image
- field.field.node.gleaning.field_media_image
- field.field.node.gleaning.field_publication_date
- field.field.node.gleaning.field_upload
- node.type.gleaning
module:
- datetime
- file
- image
- text
- user
id: node.gleaning.default
@ -27,14 +27,12 @@ content:
third_party_settings: { }
weight: 1
region: content
field_image:
type: image
field_media_image:
type: entity_reference_entity_view
label: above
settings:
image_link: ''
image_style: ''
image_loading:
attribute: lazy
view_mode: default
link: false
third_party_settings: { }
weight: 2
region: content
@ -62,4 +60,5 @@ content:
region: content
hidden:
comment: true
field_image: true
search_api_excerpt: true

View file

@ -8,6 +8,7 @@ dependencies:
- field.field.node.gleaning.body
- field.field.node.gleaning.comment
- field.field.node.gleaning.field_image
- field.field.node.gleaning.field_media_image
- field.field.node.gleaning.field_publication_date
- field.field.node.gleaning.field_upload
- node.type.gleaning
@ -52,5 +53,6 @@ content:
region: content
hidden:
field_image: true
field_media_image: true
field_publication_date: true
search_api_excerpt: true

View file

@ -7,6 +7,7 @@ dependencies:
- field.field.node.gleaning.body
- field.field.node.gleaning.comment
- field.field.node.gleaning.field_image
- field.field.node.gleaning.field_media_image
- field.field.node.gleaning.field_publication_date
- field.field.node.gleaning.field_upload
- node.type.gleaning
@ -29,6 +30,7 @@ content:
hidden:
comment: true
field_image: true
field_media_image: true
field_publication_date: true
field_upload: true
links: true

View file

@ -0,0 +1,31 @@
uuid: 9b0daf56-ff0a-4108-8e77-dd51966a349b
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_media_image
- media.type.image
- node.type.gleaning
module:
- media_library_media_modify
id: node.gleaning.field_media_image
field_name: field_media_image
entity_type: node
bundle: gleaning
label: 'Media image'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
image: image
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference_entity_modify