Replace field_image with field_media_image on collections
This commit is contained in:
parent
40c6019375
commit
d00ed881e5
10 changed files with 284 additions and 30 deletions
|
@ -10,18 +10,18 @@ dependencies:
|
|||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
- field.field.node.collection.field_tags
|
||||
- field.field.node.collection.field_topics
|
||||
- image.style.thumbnail
|
||||
- node.type.collection
|
||||
module:
|
||||
- comment
|
||||
- cshs
|
||||
- datetime
|
||||
- image
|
||||
- media_library_media_modify
|
||||
- metatag
|
||||
- paragraphs
|
||||
- path
|
||||
|
@ -73,19 +73,25 @@ content:
|
|||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_image:
|
||||
type: image_image
|
||||
field_media_image:
|
||||
type: media_library_media_modify_widget
|
||||
weight: 3
|
||||
region: content
|
||||
settings:
|
||||
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_meta_tags:
|
||||
type: metatag_firehose
|
||||
weight: 8
|
||||
region: content
|
||||
settings: { }
|
||||
settings:
|
||||
sidebar: true
|
||||
use_details: true
|
||||
third_party_settings: { }
|
||||
field_publication_date:
|
||||
type: datetime_default
|
||||
|
@ -106,9 +112,13 @@ content:
|
|||
weight: 6
|
||||
region: content
|
||||
settings:
|
||||
save_lineage: false
|
||||
force_deepest: true
|
||||
parent: '0'
|
||||
level_labels: ''
|
||||
hierarchy_depth: 0
|
||||
required_depth: 0
|
||||
none_label: '- Please select -'
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
|
@ -163,4 +173,5 @@ content:
|
|||
hidden:
|
||||
body: true
|
||||
field_collection_items: true
|
||||
field_image: true
|
||||
field_tags: true
|
||||
|
|
|
@ -11,17 +11,16 @@ dependencies:
|
|||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
- field.field.node.collection.field_tags
|
||||
- field.field.node.collection.field_topics
|
||||
- node.type.collection
|
||||
- responsive_image.styles.narrow
|
||||
module:
|
||||
- ds
|
||||
- field_group
|
||||
- responsive_image
|
||||
- user
|
||||
third_party_settings:
|
||||
ds:
|
||||
|
@ -41,9 +40,10 @@ third_party_settings:
|
|||
attributes: ''
|
||||
link_attribute: ''
|
||||
link_custom: ''
|
||||
label: ''
|
||||
regions:
|
||||
ds_content:
|
||||
- field_image
|
||||
- field_media_image
|
||||
- group_card_content
|
||||
- node_post_date
|
||||
- node_title
|
||||
|
@ -71,7 +71,7 @@ third_party_settings:
|
|||
- field_authors
|
||||
label: 'card content'
|
||||
parent_name: ''
|
||||
region: hidden
|
||||
region: ds_content
|
||||
weight: 1
|
||||
format_type: html_element
|
||||
format_settings:
|
||||
|
@ -101,17 +101,13 @@ content:
|
|||
ds_limit: ''
|
||||
weight: 8
|
||||
region: ds_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
|
||||
hidden:
|
||||
|
@ -120,6 +116,7 @@ hidden:
|
|||
field_body_paragraph: true
|
||||
field_collection_items: true
|
||||
field_collection_type: true
|
||||
field_image: true
|
||||
field_meta_tags: true
|
||||
field_publication_date: true
|
||||
field_summary: true
|
||||
|
|
|
@ -11,6 +11,7 @@ dependencies:
|
|||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
|
@ -20,8 +21,6 @@ dependencies:
|
|||
module:
|
||||
- comment
|
||||
- datetime
|
||||
- ds
|
||||
- image
|
||||
- metatag
|
||||
- text
|
||||
- user
|
||||
|
@ -75,14 +74,12 @@ content:
|
|||
third_party_settings: { }
|
||||
weight: 9
|
||||
region: content
|
||||
field_image:
|
||||
type: image
|
||||
label: hidden
|
||||
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: 3
|
||||
region: content
|
||||
|
@ -132,4 +129,5 @@ content:
|
|||
region: content
|
||||
hidden:
|
||||
field_body_paragraph: true
|
||||
field_image: true
|
||||
search_api_excerpt: true
|
||||
|
|
|
@ -11,16 +11,19 @@ dependencies:
|
|||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
- field.field.node.collection.field_tags
|
||||
- field.field.node.collection.field_topics
|
||||
- node.type.collection
|
||||
- responsive_image.styles.drutopia_main
|
||||
module:
|
||||
- ds
|
||||
- entity_reference_revisions
|
||||
- image
|
||||
- media_responsive_thumbnail
|
||||
- user
|
||||
third_party_settings:
|
||||
ds:
|
||||
|
@ -118,6 +121,17 @@ content:
|
|||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: header
|
||||
field_media_image:
|
||||
type: media_responsive_thumbnail
|
||||
label: hidden
|
||||
settings:
|
||||
responsive_image_style: drutopia_main
|
||||
image_link: ''
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: header
|
||||
field_tags:
|
||||
type: entity_reference_label
|
||||
label: visually_hidden
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
uuid: 2bb75354-a007-456a-96a2-f71fb987d153
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.media
|
||||
- field.field.node.collection.body
|
||||
- field.field.node.collection.comment
|
||||
- field.field.node.collection.field_authors
|
||||
- field.field.node.collection.field_body_paragraph
|
||||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
- field.field.node.collection.field_tags
|
||||
- field.field.node.collection.field_topics
|
||||
- image.style.medium
|
||||
- node.type.collection
|
||||
module:
|
||||
- media
|
||||
- user
|
||||
id: node.collection.media
|
||||
targetEntityType: node
|
||||
bundle: collection
|
||||
mode: media
|
||||
content:
|
||||
field_media_image:
|
||||
type: media_thumbnail
|
||||
label: hidden
|
||||
settings:
|
||||
image_link: content
|
||||
image_style: medium
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: ds_content
|
||||
links:
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 100
|
||||
region: content
|
||||
hidden:
|
||||
body: true
|
||||
comment: true
|
||||
field_authors: true
|
||||
field_body_paragraph: true
|
||||
field_collection_items: true
|
||||
field_collection_type: true
|
||||
field_image: true
|
||||
field_meta_tags: true
|
||||
field_publication_date: true
|
||||
field_summary: true
|
||||
field_tags: true
|
||||
field_topics: true
|
||||
search_api_excerpt: true
|
58
config/sync/core.entity_view_display.node.collection.rss.yml
Normal file
58
config/sync/core.entity_view_display.node.collection.rss.yml
Normal file
|
@ -0,0 +1,58 @@
|
|||
uuid: a6e52697-12c5-4250-96cb-f208b8c8c868
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.rss
|
||||
- field.field.node.collection.body
|
||||
- field.field.node.collection.comment
|
||||
- field.field.node.collection.field_authors
|
||||
- field.field.node.collection.field_body_paragraph
|
||||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
- field.field.node.collection.field_tags
|
||||
- field.field.node.collection.field_topics
|
||||
- node.type.collection
|
||||
module:
|
||||
- media
|
||||
- user
|
||||
id: node.collection.rss
|
||||
targetEntityType: node
|
||||
bundle: collection
|
||||
mode: rss
|
||||
content:
|
||||
field_media_image:
|
||||
type: media_thumbnail
|
||||
label: above
|
||||
settings:
|
||||
image_link: ''
|
||||
image_style: ''
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: ds_content
|
||||
links:
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 100
|
||||
region: content
|
||||
hidden:
|
||||
body: true
|
||||
comment: true
|
||||
field_authors: true
|
||||
field_body_paragraph: true
|
||||
field_collection_items: true
|
||||
field_collection_type: true
|
||||
field_image: true
|
||||
field_meta_tags: true
|
||||
field_publication_date: true
|
||||
field_summary: true
|
||||
field_tags: true
|
||||
field_topics: true
|
||||
search_api_excerpt: true
|
|
@ -0,0 +1,58 @@
|
|||
uuid: 6110b07f-6e37-4100-a53c-bf93ecc1f9c2
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.node.search_index
|
||||
- field.field.node.collection.body
|
||||
- field.field.node.collection.comment
|
||||
- field.field.node.collection.field_authors
|
||||
- field.field.node.collection.field_body_paragraph
|
||||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
- field.field.node.collection.field_tags
|
||||
- field.field.node.collection.field_topics
|
||||
- node.type.collection
|
||||
module:
|
||||
- media
|
||||
- user
|
||||
id: node.collection.search_index
|
||||
targetEntityType: node
|
||||
bundle: collection
|
||||
mode: search_index
|
||||
content:
|
||||
field_media_image:
|
||||
type: media_thumbnail
|
||||
label: hidden
|
||||
settings:
|
||||
image_link: ''
|
||||
image_style: ''
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 1
|
||||
region: ds_content
|
||||
links:
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 100
|
||||
region: content
|
||||
hidden:
|
||||
body: true
|
||||
comment: true
|
||||
field_authors: true
|
||||
field_body_paragraph: true
|
||||
field_collection_items: true
|
||||
field_collection_type: true
|
||||
field_image: true
|
||||
field_meta_tags: true
|
||||
field_publication_date: true
|
||||
field_summary: true
|
||||
field_tags: true
|
||||
field_topics: true
|
||||
search_api_excerpt: true
|
|
@ -11,16 +11,19 @@ dependencies:
|
|||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
- field.field.node.collection.field_tags
|
||||
- field.field.node.collection.field_topics
|
||||
- node.type.collection
|
||||
- responsive_image.styles.drutopia_card
|
||||
- responsive_image.styles.narrow
|
||||
module:
|
||||
- ds
|
||||
- field_group
|
||||
- media_responsive_thumbnail
|
||||
- responsive_image
|
||||
- user
|
||||
third_party_settings:
|
||||
|
@ -100,6 +103,17 @@ content:
|
|||
ds_limit: '1'
|
||||
weight: 0
|
||||
region: ds_content
|
||||
field_media_image:
|
||||
type: media_responsive_thumbnail
|
||||
label: hidden
|
||||
settings:
|
||||
responsive_image_style: drutopia_card
|
||||
image_link: content
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: ds_content
|
||||
hidden:
|
||||
body: true
|
||||
comment: true
|
||||
|
|
|
@ -11,13 +11,16 @@ dependencies:
|
|||
- field.field.node.collection.field_collection_items
|
||||
- field.field.node.collection.field_collection_type
|
||||
- field.field.node.collection.field_image
|
||||
- field.field.node.collection.field_media_image
|
||||
- field.field.node.collection.field_meta_tags
|
||||
- field.field.node.collection.field_publication_date
|
||||
- field.field.node.collection.field_summary
|
||||
- field.field.node.collection.field_tags
|
||||
- field.field.node.collection.field_topics
|
||||
- node.type.collection
|
||||
- responsive_image.styles.narrow
|
||||
module:
|
||||
- media_responsive_thumbnail
|
||||
- text
|
||||
- user
|
||||
_core:
|
||||
|
@ -27,6 +30,17 @@ targetEntityType: node
|
|||
bundle: collection
|
||||
mode: teaser
|
||||
content:
|
||||
field_media_image:
|
||||
type: media_responsive_thumbnail
|
||||
label: hidden
|
||||
settings:
|
||||
responsive_image_style: narrow
|
||||
image_link: content
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: left
|
||||
field_summary:
|
||||
type: text_default
|
||||
label: hidden
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
uuid: 03f0b919-17c7-4783-b85a-0122c4587bf1
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.node.field_media_image
|
||||
- media.type.image
|
||||
- node.type.collection
|
||||
module:
|
||||
- media_library_media_modify
|
||||
id: node.collection.field_media_image
|
||||
field_name: field_media_image
|
||||
entity_type: node
|
||||
bundle: collection
|
||||
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