diff --git a/config/sync/core.entity_form_display.node.ressource.default.yml b/config/sync/core.entity_form_display.node.ressource.default.yml index f0ee0b7..5dfc4af 100644 --- a/config/sync/core.entity_form_display.node.ressource.default.yml +++ b/config/sync/core.entity_form_display.node.ressource.default.yml @@ -14,6 +14,7 @@ dependencies: - field.field.node.ressource.field_sous_titre - field.field.node.ressource.field_tous_les_sites - field.field.node.ressource.field_type_de_ressource + - field.field.node.ressource.field_video - image.style.thumbnail - node.type.ressource module: @@ -24,6 +25,7 @@ dependencies: - link - path - text + - video_embed_field third_party_settings: field_group: group_details: @@ -104,6 +106,7 @@ third_party_settings: group_media: children: - field_images + - field_video - field_documents label: Média region: content @@ -149,7 +152,7 @@ content: third_party_settings: { } field_documents: type: file_generic - weight: 6 + weight: 7 region: content settings: progress_indicator: throbber @@ -211,6 +214,12 @@ content: region: content settings: { } third_party_settings: { } + field_video: + type: video_embed_field_textfield + weight: 6 + region: content + settings: { } + third_party_settings: { } path: type: path weight: 43 diff --git a/config/sync/core.entity_view_display.node.ressource.default.yml b/config/sync/core.entity_view_display.node.ressource.default.yml index e75497d..19f8b5d 100644 --- a/config/sync/core.entity_view_display.node.ressource.default.yml +++ b/config/sync/core.entity_view_display.node.ressource.default.yml @@ -14,6 +14,7 @@ dependencies: - field.field.node.ressource.field_sous_titre - field.field.node.ressource.field_tous_les_sites - field.field.node.ressource.field_type_de_ressource + - field.field.node.ressource.field_video - image.style.wide - node.type.ressource module: @@ -23,6 +24,7 @@ dependencies: - link - manage_display - text + - video_embed_field id: node.ressource.default targetEntityType: node bundle: ressource @@ -125,6 +127,17 @@ content: third_party_settings: { } weight: 102 region: content + field_video: + type: video_embed_field_video + label: above + settings: + autoplay: true + responsive: true + width: 854 + height: 480 + third_party_settings: { } + weight: 107 + region: content links: settings: { } third_party_settings: { } diff --git a/config/sync/core.entity_view_display.node.ressource.full.yml b/config/sync/core.entity_view_display.node.ressource.full.yml index 5862a2f..4b77b96 100644 --- a/config/sync/core.entity_view_display.node.ressource.full.yml +++ b/config/sync/core.entity_view_display.node.ressource.full.yml @@ -15,6 +15,7 @@ dependencies: - field.field.node.ressource.field_sous_titre - field.field.node.ressource.field_tous_les_sites - field.field.node.ressource.field_type_de_ressource + - field.field.node.ressource.field_video - image.style.wide - node.type.ressource module: @@ -81,6 +82,7 @@ hidden: field_sous_titre: true field_tous_les_sites: true field_type_de_ressource: true + field_video: true langcode: true search_api_excerpt: true uid: true diff --git a/config/sync/core.entity_view_display.node.ressource.teaser.yml b/config/sync/core.entity_view_display.node.ressource.teaser.yml index 6e4fcf9..b8ad3f0 100644 --- a/config/sync/core.entity_view_display.node.ressource.teaser.yml +++ b/config/sync/core.entity_view_display.node.ressource.teaser.yml @@ -15,6 +15,7 @@ dependencies: - field.field.node.ressource.field_sous_titre - field.field.node.ressource.field_tous_les_sites - field.field.node.ressource.field_type_de_ressource + - field.field.node.ressource.field_video - image.style.wide - node.type.ressource module: @@ -123,6 +124,7 @@ hidden: created: true field_tous_les_sites: true field_type_de_ressource: true + field_video: true langcode: true links: true search_api_excerpt: true diff --git a/config/sync/field.field.node.ressource.field_video.yml b/config/sync/field.field.node.ressource.field_video.yml new file mode 100644 index 0000000..ab6be02 --- /dev/null +++ b/config/sync/field.field.node.ressource.field_video.yml @@ -0,0 +1,25 @@ +uuid: 4f46a88b-b4de-43d5-94a1-32218a63a7f8 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_video + - node.type.ressource + module: + - video_embed_field +id: node.ressource.field_video +field_name: field_video +entity_type: node +bundle: ressource +label: Video +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + allowed_providers: + vimeo: vimeo + youtube: youtube + youtube_playlist: '0' +field_type: video_embed_field diff --git a/config/sync/field.storage.node.field_video.yml b/config/sync/field.storage.node.field_video.yml new file mode 100644 index 0000000..beba7e2 --- /dev/null +++ b/config/sync/field.storage.node.field_video.yml @@ -0,0 +1,19 @@ +uuid: 6f96724b-a30e-4aeb-95de-1a330e4b68b9 +langcode: fr +status: true +dependencies: + module: + - node + - video_embed_field +id: node.field_video +field_name: field_video +entity_type: node +type: video_embed_field +settings: { } +module: video_embed_field +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/views.view.ressources.yml b/config/sync/views.view.ressources.yml index 70a9c1e..42c232b 100644 --- a/config/sync/views.view.ressources.yml +++ b/config/sync/views.view.ressources.yml @@ -13,6 +13,7 @@ dependencies: - field.storage.node.field_site - field.storage.node.field_sous_titre - field.storage.node.field_type_de_ressource + - field.storage.node.field_video - image.style.wide - node.type.ressource - system.menu.entete @@ -28,6 +29,7 @@ dependencies: - text - user - verf + - video_embed_field id: ressources label: Ressources module: views @@ -429,6 +431,72 @@ display: multi_type: separator separator: ', ' field_api_classes: false + field_video: + id: field_video + table: node__field_video + field: field_video + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: video_embed_field_video + settings: + autoplay: false + responsive: true + width: 854 + height: 480 + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false title_1: id: title_1 table: node_field_data @@ -1400,6 +1468,7 @@ display: - 'config:field.storage.node.field_site' - 'config:field.storage.node.field_sous_titre' - 'config:field.storage.node.field_type_de_ressource' + - 'config:field.storage.node.field_video' - 'config:views.view.ressources' - node_list page_1: @@ -1458,5 +1527,6 @@ display: - 'config:field.storage.node.field_site' - 'config:field.storage.node.field_sous_titre' - 'config:field.storage.node.field_type_de_ressource' + - 'config:field.storage.node.field_video' - 'config:views.view.ressources' - node_list