From 7159dd444ac94373374d6667d8d6313ba09d54a2 Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 12 Nov 2024 13:00:13 +0100 Subject: [PATCH] home telecharger le calendrier --- config/sync/config_pages.type.deroulement.yml | 2 +- ...splay.config_pages.deroulement.default.yml | 11 +++++++- ...splay.config_pages.deroulement.default.yml | 10 +++++++ ...fig_pages.deroulement.field_calendrier.yml | 27 +++++++++++++++++++ ....storage.config_pages.field_calendrier.yml | 23 ++++++++++++++++ 5 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 config/sync/field.field.config_pages.deroulement.field_calendrier.yml create mode 100644 config/sync/field.storage.config_pages.field_calendrier.yml diff --git a/config/sync/config_pages.type.deroulement.yml b/config/sync/config_pages.type.deroulement.yml index 006c859..eb07645 100644 --- a/config/sync/config_pages.type.deroulement.yml +++ b/config/sync/config_pages.type.deroulement.yml @@ -3,7 +3,7 @@ langcode: fr status: true dependencies: { } id: deroulement -label: Déroulement +label: Calendrier token: true context: show_warning: true diff --git a/config/sync/core.entity_form_display.config_pages.deroulement.default.yml b/config/sync/core.entity_form_display.config_pages.deroulement.default.yml index eb09684..8c07693 100644 --- a/config/sync/core.entity_form_display.config_pages.deroulement.default.yml +++ b/config/sync/core.entity_form_display.config_pages.deroulement.default.yml @@ -4,17 +4,26 @@ status: true dependencies: config: - config_pages.type.deroulement + - field.field.config_pages.deroulement.field_calendrier - field.field.config_pages.deroulement.field_phase module: + - file - paragraphs id: config_pages.deroulement.default targetEntityType: config_pages bundle: deroulement mode: default content: + field_calendrier: + type: file_generic + weight: 0 + region: content + settings: + progress_indicator: throbber + third_party_settings: { } field_phase: type: paragraphs - weight: 0 + weight: 1 region: content settings: title: Paragraphe diff --git a/config/sync/core.entity_view_display.config_pages.deroulement.default.yml b/config/sync/core.entity_view_display.config_pages.deroulement.default.yml index 5571332..158c80e 100644 --- a/config/sync/core.entity_view_display.config_pages.deroulement.default.yml +++ b/config/sync/core.entity_view_display.config_pages.deroulement.default.yml @@ -4,14 +4,24 @@ status: true dependencies: config: - config_pages.type.deroulement + - field.field.config_pages.deroulement.field_calendrier - field.field.config_pages.deroulement.field_phase module: - entity_reference_revisions + - file id: config_pages.deroulement.default targetEntityType: config_pages bundle: deroulement mode: default content: + field_calendrier: + type: file_default + label: visually_hidden + settings: + use_description_as_link_text: true + third_party_settings: { } + weight: 1 + region: content field_phase: type: entity_reference_revisions_entity_view label: visually_hidden diff --git a/config/sync/field.field.config_pages.deroulement.field_calendrier.yml b/config/sync/field.field.config_pages.deroulement.field_calendrier.yml new file mode 100644 index 0000000..477d1c4 --- /dev/null +++ b/config/sync/field.field.config_pages.deroulement.field_calendrier.yml @@ -0,0 +1,27 @@ +uuid: f4dd9d74-d587-429d-8829-c6adfe75badd +langcode: fr +status: true +dependencies: + config: + - config_pages.type.deroulement + - field.storage.config_pages.field_calendrier + module: + - file +id: config_pages.deroulement.field_calendrier +field_name: field_calendrier +entity_type: config_pages +bundle: deroulement +label: Calendrier +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:file' + handler_settings: { } + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'pdf doc docx odt zip' + max_filesize: '' + description_field: true +field_type: file diff --git a/config/sync/field.storage.config_pages.field_calendrier.yml b/config/sync/field.storage.config_pages.field_calendrier.yml new file mode 100644 index 0000000..be98df1 --- /dev/null +++ b/config/sync/field.storage.config_pages.field_calendrier.yml @@ -0,0 +1,23 @@ +uuid: c0e6c8e1-8cf9-4f99-8c83-bd0a8cca4419 +langcode: fr +status: true +dependencies: + module: + - config_pages + - file +id: config_pages.field_calendrier +field_name: field_calendrier +entity_type: config_pages +type: file +settings: + target_type: file + display_field: false + display_default: false + uri_scheme: public +module: file +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false