mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-01-12 23:24:34 +00:00
Add media reference fields
This commit is contained in:
parent
fe6ef34767
commit
2f45f01ebe
12 changed files with 188 additions and 1 deletions
|
@ -4,9 +4,11 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.node.article.body
|
- field.field.node.article.body
|
||||||
|
- field.field.node.article.field_media_image
|
||||||
- field.field.node.article.field_tags
|
- field.field.node.article.field_tags
|
||||||
- node.type.article
|
- node.type.article
|
||||||
module:
|
module:
|
||||||
|
- media_library
|
||||||
- path
|
- path
|
||||||
- text
|
- text
|
||||||
id: node.article.default
|
id: node.article.default
|
||||||
|
@ -30,6 +32,13 @@ content:
|
||||||
region: content
|
region: content
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
|
field_media_image:
|
||||||
|
type: media_library_widget
|
||||||
|
weight: 121
|
||||||
|
region: content
|
||||||
|
settings:
|
||||||
|
media_types: { }
|
||||||
|
third_party_settings: { }
|
||||||
field_tags:
|
field_tags:
|
||||||
type: entity_reference_autocomplete_tags
|
type: entity_reference_autocomplete_tags
|
||||||
weight: -4
|
weight: -4
|
||||||
|
|
|
@ -4,6 +4,7 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.node.session.field_description
|
- field.field.node.session.field_description
|
||||||
|
- field.field.node.session.field_media_remote_video
|
||||||
- field.field.node.session.field_slides
|
- field.field.node.session.field_slides
|
||||||
- field.field.node.session.field_speakers
|
- field.field.node.session.field_speakers
|
||||||
- field.field.node.session.field_topics
|
- field.field.node.session.field_topics
|
||||||
|
@ -11,6 +12,7 @@ dependencies:
|
||||||
module:
|
module:
|
||||||
- field_group
|
- field_group
|
||||||
- file
|
- file
|
||||||
|
- media_library
|
||||||
- path
|
- path
|
||||||
- text
|
- text
|
||||||
third_party_settings:
|
third_party_settings:
|
||||||
|
@ -18,6 +20,7 @@ third_party_settings:
|
||||||
group_resources:
|
group_resources:
|
||||||
children:
|
children:
|
||||||
- field_slides
|
- field_slides
|
||||||
|
- field_media_remote_video
|
||||||
label: Resources
|
label: Resources
|
||||||
region: content
|
region: content
|
||||||
parent_name: ''
|
parent_name: ''
|
||||||
|
@ -49,6 +52,13 @@ content:
|
||||||
rows: 5
|
rows: 5
|
||||||
placeholder: ''
|
placeholder: ''
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
|
field_media_remote_video:
|
||||||
|
type: media_library_widget
|
||||||
|
weight: 6
|
||||||
|
region: content
|
||||||
|
settings:
|
||||||
|
media_types: { }
|
||||||
|
third_party_settings: { }
|
||||||
field_slides:
|
field_slides:
|
||||||
type: file_generic
|
type: file_generic
|
||||||
weight: 5
|
weight: 5
|
||||||
|
|
|
@ -5,10 +5,12 @@ dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.node.venue.field_additional_information
|
- field.field.node.venue.field_additional_information
|
||||||
- field.field.node.venue.field_address
|
- field.field.node.venue.field_address
|
||||||
|
- field.field.node.venue.field_media_image
|
||||||
- field.field.node.venue.field_phone
|
- field.field.node.venue.field_phone
|
||||||
- node.type.venue
|
- node.type.venue
|
||||||
module:
|
module:
|
||||||
- address
|
- address
|
||||||
|
- media_library
|
||||||
- path
|
- path
|
||||||
- telephone
|
- telephone
|
||||||
- text
|
- text
|
||||||
|
@ -38,6 +40,13 @@ content:
|
||||||
settings:
|
settings:
|
||||||
wrapper_type: fieldset
|
wrapper_type: fieldset
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
|
field_media_image:
|
||||||
|
type: media_library_widget
|
||||||
|
weight: 121
|
||||||
|
region: content
|
||||||
|
settings:
|
||||||
|
media_types: { }
|
||||||
|
third_party_settings: { }
|
||||||
field_phone:
|
field_phone:
|
||||||
type: telephone_default
|
type: telephone_default
|
||||||
weight: 37
|
weight: 37
|
||||||
|
|
|
@ -4,6 +4,7 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.node.article.body
|
- field.field.node.article.body
|
||||||
|
- field.field.node.article.field_media_image
|
||||||
- field.field.node.article.field_tags
|
- field.field.node.article.field_tags
|
||||||
- node.type.article
|
- node.type.article
|
||||||
module:
|
module:
|
||||||
|
@ -21,6 +22,15 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 0
|
weight: 0
|
||||||
region: content
|
region: content
|
||||||
|
field_media_image:
|
||||||
|
type: entity_reference_entity_view
|
||||||
|
label: above
|
||||||
|
settings:
|
||||||
|
view_mode: default
|
||||||
|
link: false
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 101
|
||||||
|
region: content
|
||||||
field_tags:
|
field_tags:
|
||||||
type: entity_reference_label
|
type: entity_reference_label
|
||||||
label: above
|
label: above
|
||||||
|
|
|
@ -5,6 +5,7 @@ dependencies:
|
||||||
config:
|
config:
|
||||||
- core.entity_view_mode.node.teaser
|
- core.entity_view_mode.node.teaser
|
||||||
- field.field.node.article.body
|
- field.field.node.article.body
|
||||||
|
- field.field.node.article.field_media_image
|
||||||
- field.field.node.article.field_tags
|
- field.field.node.article.field_tags
|
||||||
- node.type.article
|
- node.type.article
|
||||||
module:
|
module:
|
||||||
|
@ -36,4 +37,5 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 100
|
weight: 100
|
||||||
region: content
|
region: content
|
||||||
hidden: { }
|
hidden:
|
||||||
|
field_media_image: true
|
||||||
|
|
|
@ -4,6 +4,7 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.node.session.field_description
|
- field.field.node.session.field_description
|
||||||
|
- field.field.node.session.field_media_remote_video
|
||||||
- field.field.node.session.field_slides
|
- field.field.node.session.field_slides
|
||||||
- field.field.node.session.field_speakers
|
- field.field.node.session.field_speakers
|
||||||
- field.field.node.session.field_topics
|
- field.field.node.session.field_topics
|
||||||
|
@ -24,6 +25,15 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 4
|
weight: 4
|
||||||
region: content
|
region: content
|
||||||
|
field_media_remote_video:
|
||||||
|
type: entity_reference_entity_view
|
||||||
|
label: above
|
||||||
|
settings:
|
||||||
|
view_mode: default
|
||||||
|
link: false
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 101
|
||||||
|
region: content
|
||||||
field_slides:
|
field_slides:
|
||||||
type: file_default
|
type: file_default
|
||||||
label: above
|
label: above
|
||||||
|
|
|
@ -5,6 +5,7 @@ dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.node.venue.field_additional_information
|
- field.field.node.venue.field_additional_information
|
||||||
- field.field.node.venue.field_address
|
- field.field.node.venue.field_address
|
||||||
|
- field.field.node.venue.field_media_image
|
||||||
- field.field.node.venue.field_phone
|
- field.field.node.venue.field_phone
|
||||||
- node.type.venue
|
- node.type.venue
|
||||||
module:
|
module:
|
||||||
|
@ -31,6 +32,15 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
weight: 1
|
weight: 1
|
||||||
region: content
|
region: content
|
||||||
|
field_media_image:
|
||||||
|
type: entity_reference_entity_view
|
||||||
|
label: above
|
||||||
|
settings:
|
||||||
|
view_mode: default
|
||||||
|
link: false
|
||||||
|
third_party_settings: { }
|
||||||
|
weight: 101
|
||||||
|
region: content
|
||||||
field_phone:
|
field_phone:
|
||||||
type: telephone_link
|
type: telephone_link
|
||||||
label: inline
|
label: inline
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
uuid: bd667c67-4be3-4d6b-b9fe-4369885875d7
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.node.field_media_image
|
||||||
|
- media.type.image
|
||||||
|
- node.type.article
|
||||||
|
id: node.article.field_media_image
|
||||||
|
field_name: field_media_image
|
||||||
|
entity_type: node
|
||||||
|
bundle: article
|
||||||
|
label: Image
|
||||||
|
description: 'Upload an image to go with this article.'
|
||||||
|
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
|
|
@ -0,0 +1,29 @@
|
||||||
|
uuid: b078ece8-0e97-46c7-9529-c61a46acfa9b
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.node.field_media_remote_video
|
||||||
|
- media.type.remote_video
|
||||||
|
- node.type.session
|
||||||
|
id: node.session.field_media_remote_video
|
||||||
|
field_name: field_media_remote_video
|
||||||
|
entity_type: node
|
||||||
|
bundle: session
|
||||||
|
label: 'Video recording'
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings:
|
||||||
|
handler: 'default:media'
|
||||||
|
handler_settings:
|
||||||
|
target_bundles:
|
||||||
|
remote_video: remote_video
|
||||||
|
sort:
|
||||||
|
field: _none
|
||||||
|
direction: ASC
|
||||||
|
auto_create: false
|
||||||
|
auto_create_bundle: ''
|
||||||
|
field_type: entity_reference
|
29
drupal10/config/field.field.node.venue.field_media_image.yml
Normal file
29
drupal10/config/field.field.node.venue.field_media_image.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
uuid: 01b1ec0b-4018-42e9-8f89-a7a832190105
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.node.field_media_image
|
||||||
|
- media.type.image
|
||||||
|
- node.type.venue
|
||||||
|
id: node.venue.field_media_image
|
||||||
|
field_name: field_media_image
|
||||||
|
entity_type: node
|
||||||
|
bundle: venue
|
||||||
|
label: 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
|
20
drupal10/config/field.storage.node.field_media_image.yml
Normal file
20
drupal10/config/field.storage.node.field_media_image.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
uuid: b579ed7e-6523-4584-8d05-e84100633d12
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- media
|
||||||
|
- node
|
||||||
|
id: node.field_media_image
|
||||||
|
field_name: field_media_image
|
||||||
|
entity_type: node
|
||||||
|
type: entity_reference
|
||||||
|
settings:
|
||||||
|
target_type: media
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
|
@ -0,0 +1,20 @@
|
||||||
|
uuid: ba0e718f-7738-4468-a5e2-2190d71e7209
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- media
|
||||||
|
- node
|
||||||
|
id: node.field_media_remote_video
|
||||||
|
field_name: field_media_remote_video
|
||||||
|
entity_type: node
|
||||||
|
type: entity_reference
|
||||||
|
settings:
|
||||||
|
target_type: media
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
Loading…
Reference in a new issue