Replace field image with field media image on gleanings
This commit is contained in:
parent
dba0b270b0
commit
28422be24c
6 changed files with 63 additions and 51 deletions
|
@ -6,14 +6,14 @@ dependencies:
|
||||||
- field.field.node.gleaning.body
|
- field.field.node.gleaning.body
|
||||||
- field.field.node.gleaning.comment
|
- field.field.node.gleaning.comment
|
||||||
- field.field.node.gleaning.field_image
|
- 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_publication_date
|
||||||
- field.field.node.gleaning.field_upload
|
- field.field.node.gleaning.field_upload
|
||||||
- image.style.thumbnail
|
|
||||||
- node.type.gleaning
|
- node.type.gleaning
|
||||||
module:
|
module:
|
||||||
- datetime
|
- datetime
|
||||||
- file
|
- file
|
||||||
- insert
|
- media_library_media_modify
|
||||||
- path
|
- path
|
||||||
- text
|
- text
|
||||||
id: node.gleaning.default
|
id: node.gleaning.default
|
||||||
|
@ -37,37 +37,17 @@ content:
|
||||||
region: content
|
region: content
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
field_image:
|
field_media_image:
|
||||||
type: insert_image
|
type: media_library_media_modify_widget
|
||||||
weight: 3
|
weight: 3
|
||||||
region: content
|
region: content
|
||||||
settings:
|
settings:
|
||||||
insert_absolute: false
|
media_types: { }
|
||||||
insert_styles:
|
form_mode: default
|
||||||
focal_point_325x195: focal_point_325x195
|
check_selected: false
|
||||||
focal_point_1300x650: '0'
|
replace_checkbox_by_order_indicator: false
|
||||||
focal_point_195x260: '0'
|
multi_edit_on_create: false
|
||||||
focal_point_2600x1300: '0'
|
no_edit_on_create: false
|
||||||
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
|
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
field_publication_date:
|
field_publication_date:
|
||||||
type: datetime_default
|
type: datetime_default
|
||||||
|
@ -134,3 +114,4 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
hidden:
|
hidden:
|
||||||
comment: true
|
comment: true
|
||||||
|
field_image: true
|
||||||
|
|
|
@ -7,15 +7,14 @@ dependencies:
|
||||||
- field.field.node.gleaning.body
|
- field.field.node.gleaning.body
|
||||||
- field.field.node.gleaning.comment
|
- field.field.node.gleaning.comment
|
||||||
- field.field.node.gleaning.field_image
|
- 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_publication_date
|
||||||
- field.field.node.gleaning.field_upload
|
- field.field.node.gleaning.field_upload
|
||||||
- node.type.gleaning
|
- node.type.gleaning
|
||||||
- responsive_image.styles.narrow
|
|
||||||
module:
|
module:
|
||||||
- datetime
|
- datetime
|
||||||
- ds
|
- ds
|
||||||
- field_group
|
- field_group
|
||||||
- responsive_image
|
|
||||||
- user
|
- user
|
||||||
third_party_settings:
|
third_party_settings:
|
||||||
field_group:
|
field_group:
|
||||||
|
@ -25,7 +24,7 @@ third_party_settings:
|
||||||
- node_title
|
- node_title
|
||||||
label: 'Card content'
|
label: 'Card content'
|
||||||
parent_name: ''
|
parent_name: ''
|
||||||
region: hidden
|
region: ds_content
|
||||||
weight: 1
|
weight: 1
|
||||||
format_type: html_element
|
format_type: html_element
|
||||||
format_settings:
|
format_settings:
|
||||||
|
@ -55,9 +54,10 @@ third_party_settings:
|
||||||
attributes: ''
|
attributes: ''
|
||||||
link_attribute: ''
|
link_attribute: ''
|
||||||
link_custom: ''
|
link_custom: ''
|
||||||
|
label: ''
|
||||||
regions:
|
regions:
|
||||||
ds_content:
|
ds_content:
|
||||||
- field_image
|
- field_media_image
|
||||||
- group_card_content
|
- group_card_content
|
||||||
- field_publication_date
|
- field_publication_date
|
||||||
- node_title
|
- node_title
|
||||||
|
@ -77,17 +77,13 @@ targetEntityType: node
|
||||||
bundle: gleaning
|
bundle: gleaning
|
||||||
mode: card
|
mode: card
|
||||||
content:
|
content:
|
||||||
field_image:
|
field_media_image:
|
||||||
type: responsive_image
|
type: entity_reference_entity_view
|
||||||
label: hidden
|
label: above
|
||||||
settings:
|
settings:
|
||||||
responsive_image_style: narrow
|
view_mode: default
|
||||||
image_link: content
|
link: false
|
||||||
image_loading:
|
third_party_settings: { }
|
||||||
attribute: eager
|
|
||||||
third_party_settings:
|
|
||||||
ds:
|
|
||||||
ds_limit: '1'
|
|
||||||
weight: 0
|
weight: 0
|
||||||
region: ds_content
|
region: ds_content
|
||||||
field_publication_date:
|
field_publication_date:
|
||||||
|
@ -102,6 +98,7 @@ content:
|
||||||
hidden:
|
hidden:
|
||||||
body: true
|
body: true
|
||||||
comment: true
|
comment: true
|
||||||
|
field_image: true
|
||||||
field_upload: true
|
field_upload: true
|
||||||
links: true
|
links: true
|
||||||
search_api_excerpt: true
|
search_api_excerpt: true
|
||||||
|
|
|
@ -6,13 +6,13 @@ dependencies:
|
||||||
- field.field.node.gleaning.body
|
- field.field.node.gleaning.body
|
||||||
- field.field.node.gleaning.comment
|
- field.field.node.gleaning.comment
|
||||||
- field.field.node.gleaning.field_image
|
- 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_publication_date
|
||||||
- field.field.node.gleaning.field_upload
|
- field.field.node.gleaning.field_upload
|
||||||
- node.type.gleaning
|
- node.type.gleaning
|
||||||
module:
|
module:
|
||||||
- datetime
|
- datetime
|
||||||
- file
|
- file
|
||||||
- image
|
|
||||||
- text
|
- text
|
||||||
- user
|
- user
|
||||||
id: node.gleaning.default
|
id: node.gleaning.default
|
||||||
|
@ -27,14 +27,12 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 1
|
weight: 1
|
||||||
region: content
|
region: content
|
||||||
field_image:
|
field_media_image:
|
||||||
type: image
|
type: entity_reference_entity_view
|
||||||
label: above
|
label: above
|
||||||
settings:
|
settings:
|
||||||
image_link: ''
|
view_mode: default
|
||||||
image_style: ''
|
link: false
|
||||||
image_loading:
|
|
||||||
attribute: lazy
|
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 2
|
weight: 2
|
||||||
region: content
|
region: content
|
||||||
|
@ -62,4 +60,5 @@ content:
|
||||||
region: content
|
region: content
|
||||||
hidden:
|
hidden:
|
||||||
comment: true
|
comment: true
|
||||||
|
field_image: true
|
||||||
search_api_excerpt: true
|
search_api_excerpt: true
|
||||||
|
|
|
@ -8,6 +8,7 @@ dependencies:
|
||||||
- field.field.node.gleaning.body
|
- field.field.node.gleaning.body
|
||||||
- field.field.node.gleaning.comment
|
- field.field.node.gleaning.comment
|
||||||
- field.field.node.gleaning.field_image
|
- 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_publication_date
|
||||||
- field.field.node.gleaning.field_upload
|
- field.field.node.gleaning.field_upload
|
||||||
- node.type.gleaning
|
- node.type.gleaning
|
||||||
|
@ -52,5 +53,6 @@ content:
|
||||||
region: content
|
region: content
|
||||||
hidden:
|
hidden:
|
||||||
field_image: true
|
field_image: true
|
||||||
|
field_media_image: true
|
||||||
field_publication_date: true
|
field_publication_date: true
|
||||||
search_api_excerpt: true
|
search_api_excerpt: true
|
||||||
|
|
|
@ -7,6 +7,7 @@ dependencies:
|
||||||
- field.field.node.gleaning.body
|
- field.field.node.gleaning.body
|
||||||
- field.field.node.gleaning.comment
|
- field.field.node.gleaning.comment
|
||||||
- field.field.node.gleaning.field_image
|
- 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_publication_date
|
||||||
- field.field.node.gleaning.field_upload
|
- field.field.node.gleaning.field_upload
|
||||||
- node.type.gleaning
|
- node.type.gleaning
|
||||||
|
@ -29,6 +30,7 @@ content:
|
||||||
hidden:
|
hidden:
|
||||||
comment: true
|
comment: true
|
||||||
field_image: true
|
field_image: true
|
||||||
|
field_media_image: true
|
||||||
field_publication_date: true
|
field_publication_date: true
|
||||||
field_upload: true
|
field_upload: true
|
||||||
links: true
|
links: true
|
||||||
|
|
31
config/sync/field.field.node.gleaning.field_media_image.yml
Normal file
31
config/sync/field.field.node.gleaning.field_media_image.yml
Normal 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
|
Loading…
Add table
Reference in a new issue