From e7a5e163ffb866187c2111a01bc68fd62c36b54a Mon Sep 17 00:00:00 2001 From: Valentin Le Moign Date: Mon, 14 Apr 2025 16:03:11 +0200 Subject: [PATCH] =?UTF-8?q?r=C3=A9ajout=20du=20field=20type=20de=20ressour?= =?UTF-8?q?ce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ty_form_display.node.ressource.default.yml | 7 ++++ ...ty_view_display.node.ressource.default.yml | 9 +++++ ...ity_view_display.node.ressource.teaser.yml | 2 ++ ...node.ressource.field_type_de_ressource.yml | 21 ++++++++++++ ...d.storage.node.field_type_de_ressource.yml | 33 +++++++++++++++++++ 5 files changed, 72 insertions(+) create mode 100644 config/sync/field.field.node.ressource.field_type_de_ressource.yml create mode 100644 config/sync/field.storage.node.field_type_de_ressource.yml 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 ed0d985..f064e5d 100644 --- a/config/sync/core.entity_form_display.node.ressource.default.yml +++ b/config/sync/core.entity_form_display.node.ressource.default.yml @@ -9,6 +9,7 @@ dependencies: - field.field.node.ressource.field_introduction - field.field.node.ressource.field_parties_ressource - field.field.node.ressource.field_thematiques + - field.field.node.ressource.field_type_de_ressource - node.type.ressource module: - autocomplete_deluxe @@ -162,6 +163,12 @@ content: new_terms: false no_empty_message: 'No terms could be found. Please type in order to add a new term.' third_party_settings: { } + field_type_de_ressource: + type: options_select + weight: 31 + region: content + settings: { } + third_party_settings: { } path: type: path weight: 30 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 1a48be3..d9cb26c 100644 --- a/config/sync/core.entity_view_display.node.ressource.default.yml +++ b/config/sync/core.entity_view_display.node.ressource.default.yml @@ -9,10 +9,12 @@ dependencies: - field.field.node.ressource.field_introduction - field.field.node.ressource.field_parties_ressource - field.field.node.ressource.field_thematiques + - field.field.node.ressource.field_type_de_ressource - node.type.ressource module: - datetime - entity_reference_revisions + - options - text - user id: node.ressource.default @@ -69,6 +71,13 @@ content: third_party_settings: { } weight: 4 region: content + field_type_de_ressource: + type: list_default + label: above + settings: { } + third_party_settings: { } + weight: 108 + region: content links: settings: { } third_party_settings: { } 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 f20a030..eb05f86 100644 --- a/config/sync/core.entity_view_display.node.ressource.teaser.yml +++ b/config/sync/core.entity_view_display.node.ressource.teaser.yml @@ -10,6 +10,7 @@ dependencies: - field.field.node.ressource.field_introduction - field.field.node.ressource.field_parties_ressource - field.field.node.ressource.field_thematiques + - field.field.node.ressource.field_type_de_ressource - node.type.ressource module: - user @@ -30,6 +31,7 @@ hidden: field_introduction: true field_parties_ressource: true field_thematiques: true + field_type_de_ressource: true footnotes_group: true langcode: true search_api_excerpt: true diff --git a/config/sync/field.field.node.ressource.field_type_de_ressource.yml b/config/sync/field.field.node.ressource.field_type_de_ressource.yml new file mode 100644 index 0000000..5965c0b --- /dev/null +++ b/config/sync/field.field.node.ressource.field_type_de_ressource.yml @@ -0,0 +1,21 @@ +uuid: e439dc6f-3fc5-40cb-b615-f95c5a22a6f9 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_type_de_ressource + - node.type.ressource + module: + - options +id: node.ressource.field_type_de_ressource +field_name: field_type_de_ressource +entity_type: node +bundle: ressource +label: 'Type de ressource' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: list_string diff --git a/config/sync/field.storage.node.field_type_de_ressource.yml b/config/sync/field.storage.node.field_type_de_ressource.yml new file mode 100644 index 0000000..136f3e9 --- /dev/null +++ b/config/sync/field.storage.node.field_type_de_ressource.yml @@ -0,0 +1,33 @@ +uuid: be6b9eb9-d827-4adc-9106-e7c31b94aff6 +langcode: fr +status: true +dependencies: + module: + - node + - options +id: node.field_type_de_ressource +field_name: field_type_de_ressource +entity_type: node +type: list_string +settings: + allowed_values: + - + value: cartes_blanches + label: 'Cartes blanches' + - + value: reportages + label: Reportages + - + value: videos + label: Videos + - + value: documents + label: Documents + allowed_values_function: '' +module: options +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false