added media type field to ressource

This commit is contained in:
2025-04-29 11:09:15 +02:00
parent 65d561c427
commit 7a09b36612
9 changed files with 1207 additions and 98 deletions
@@ -16,6 +16,7 @@ dependencies:
- field.field.node.ressource.field_ress
- field.field.node.ressource.field_sous_titre
- field.field.node.ressource.field_textes
- field.field.node.ressource.field_type_de_media
- field.field.node.ressource.field_type_de_ressource
- field.field.node.ressource.field_videos
- image.style.thumbnail
@@ -104,6 +105,7 @@ third_party_settings:
children:
- field_collections
- field_type_de_ressource
- field_type_de_media
- status
- promote
label: Details
@@ -253,15 +255,17 @@ content:
form_display_mode: default
default_paragraph_type: ''
third_party_settings: { }
field_type_de_media:
type: options_select
weight: 138
region: content
settings: { }
third_party_settings: { }
field_type_de_ressource:
type: entity_reference_autocomplete
type: options_select
weight: 137
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
settings: { }
third_party_settings: { }
field_videos:
type: video_embed_field_textfield
@@ -271,14 +275,14 @@ content:
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 139
weight: 140
region: content
settings:
display_label: true
third_party_settings: { }
status:
type: boolean_checkbox
weight: 138
weight: 139
region: content
settings:
display_label: true
@@ -16,6 +16,7 @@ dependencies:
- field.field.node.ressource.field_ress
- field.field.node.ressource.field_sous_titre
- field.field.node.ressource.field_textes
- field.field.node.ressource.field_type_de_media
- field.field.node.ressource.field_type_de_ressource
- field.field.node.ressource.field_videos
- node.type.ressource
@@ -39,14 +40,14 @@ content:
settings:
link: true
third_party_settings: { }
weight: 13
weight: 14
region: content
field_auteur_s_:
type: text_default
label: visually_hidden
settings: { }
third_party_settings: { }
weight: 4
weight: 5
region: content
field_collections:
type: entity_reference_label
@@ -54,7 +55,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 6
weight: 7
region: content
field_date_de_parution:
type: datetime_default
@@ -63,14 +64,14 @@ content:
timezone_override: ''
format_type: short
third_party_settings: { }
weight: 3
weight: 4
region: content
field_edition:
type: text_default
label: visually_hidden
settings: { }
third_party_settings: { }
weight: 5
weight: 6
region: content
field_fichiers:
type: file_default
@@ -78,7 +79,7 @@ content:
settings:
use_description_as_link_text: true
third_party_settings: { }
weight: 7
weight: 8
region: content
field_images:
type: image_caption
@@ -89,7 +90,7 @@ content:
image_loading:
attribute: lazy
third_party_settings: { }
weight: 8
weight: 9
region: content
field_liens:
type: link
@@ -101,7 +102,7 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 9
weight: 10
region: content
field_mots_clefs:
type: entity_reference_label
@@ -109,7 +110,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 14
weight: 15
region: content
field_projets_liee:
type: entity_reference_label
@@ -117,7 +118,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 12
weight: 13
region: content
field_ress:
type: entity_reference_label
@@ -125,7 +126,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 11
weight: 12
region: content
field_sous_titre:
type: string
@@ -133,7 +134,7 @@ content:
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
weight: 3
region: content
field_textes:
type: entity_reference_revisions_entity_view
@@ -142,7 +143,15 @@ content:
view_mode: default
link: ''
third_party_settings: { }
weight: 15
weight: 16
region: content
field_type_de_media:
type: entity_reference_label
label: visually_hidden
settings:
link: true
third_party_settings: { }
weight: 2
region: content
field_type_de_ressource:
type: entity_reference_label
@@ -161,7 +170,7 @@ content:
width: 854
height: 480
third_party_settings: { }
weight: 10
weight: 11
region: content
title:
type: title
@@ -17,6 +17,7 @@ dependencies:
- field.field.node.ressource.field_ress
- field.field.node.ressource.field_sous_titre
- field.field.node.ressource.field_textes
- field.field.node.ressource.field_type_de_media
- field.field.node.ressource.field_type_de_ressource
- field.field.node.ressource.field_videos
- image.style.medium
@@ -101,6 +102,7 @@ hidden:
field_projets_liee: true
field_ress: true
field_textes: true
field_type_de_media: true
field_videos: true
langcode: true
links: true
@@ -17,6 +17,7 @@ dependencies:
- field.field.node.ressource.field_ress
- field.field.node.ressource.field_sous_titre
- field.field.node.ressource.field_textes
- field.field.node.ressource.field_type_de_media
- field.field.node.ressource.field_type_de_ressource
- field.field.node.ressource.field_videos
- image.style.large
@@ -114,6 +115,7 @@ hidden:
field_projets_liee: true
field_ress: true
field_textes: true
field_type_de_media: true
field_videos: true
langcode: true
search_api_excerpt: true
@@ -0,0 +1,29 @@
uuid: b884c578-cbdc-4d4b-9cae-a398f2698d61
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_type_de_media
- node.type.ressource
- taxonomy.vocabulary.type_de_media
id: node.ressource.field_type_de_media
field_name: field_type_de_media
entity_type: node
bundle: ressource
label: 'Type de media'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
type_de_media: type_de_media
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
@@ -0,0 +1,20 @@
uuid: e4c66ec7-1518-4dcb-a9f0-d70e09877260
langcode: fr
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_type_de_media
field_name: field_type_de_media
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
@@ -0,0 +1,11 @@
uuid: 4edca7f7-45e3-48a5-81b9-291ddb138f67
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.type_de_media
id: taxonomy_term.type_de_media
target_entity_type_id: taxonomy_term
target_bundle: type_de_media
default_langcode: site_default
language_alterable: false
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,8 @@
uuid: 5289e2ca-b382-4f6a-91b3-2fc7fa7d8216
langcode: fr
status: true
dependencies: { }
name: 'type de media'
vid: type_de_media
description: ''
weight: 0