bach 3 years ago
parent
commit
cc6b65b391

+ 22 - 1
config/sync/core.entity_form_display.node.projet.default.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.field.node.projet.field_adresse
     - field.field.node.projet.field_comparatifs_associes
     - field.field.node.projet.field_diaporama
+    - field.field.node.projet.field_document
     - field.field.node.projet.field_equipes
     - field.field.node.projet.field_evenements_lies
     - field.field.node.projet.field_ge
@@ -28,6 +29,7 @@ dependencies:
     - image
     - inline_entity_form
     - leaflet_more_markers
+    - paragraphs
     - text
 third_party_settings:
   field_group:
@@ -112,6 +114,7 @@ third_party_settings:
     group_media:
       children:
         - field_diaporama
+        - field_document
       parent_name: group_tabs
       weight: 20
       format_type: tab
@@ -157,8 +160,8 @@ third_party_settings:
     group_adresse:
       children:
         - field_adresse
-        - field_ge
         - field_map_marker
+        - field_ge
       parent_name: group_tabs
       weight: 9
       format_type: tab
@@ -209,6 +212,24 @@ content:
     third_party_settings: {  }
     type: image_image
     region: content
+  field_document:
+    weight: 13
+    settings:
+      title: Paragraph
+      title_plural: Paragraphs
+      edit_mode: open
+      closed_mode: summary
+      autocollapse: none
+      closed_mode_threshold: 0
+      add_mode: dropdown
+      form_display_mode: default
+      default_paragraph_type: ''
+      features:
+        collapse_edit_all: collapse_edit_all
+        duplicate: duplicate
+    third_party_settings: {  }
+    type: paragraphs
+    region: content
   field_equipes:
     type: inline_entity_form_simple
     weight: 4

+ 10 - 0
config/sync/core.entity_view_display.node.projet.default.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.field.node.projet.field_adresse
     - field.field.node.projet.field_comparatifs_associes
     - field.field.node.projet.field_diaporama
+    - field.field.node.projet.field_document
     - field.field.node.projet.field_equipes
     - field.field.node.projet.field_evenements_lies
     - field.field.node.projet.field_ge
@@ -69,6 +70,15 @@ content:
     third_party_settings: {  }
     type: image
     region: content
+  field_document:
+    weight: 13
+    label: above
+    settings:
+      view_mode: default
+      link: ''
+    third_party_settings: {  }
+    type: entity_reference_revisions_entity_view
+    region: content
   field_equipes:
     type: entity_reference_revisions_entity_view
     weight: 10

+ 2 - 0
config/sync/core.entity_view_display.node.projet.teaser.yml

@@ -8,6 +8,7 @@ dependencies:
     - field.field.node.projet.field_adresse
     - field.field.node.projet.field_comparatifs_associes
     - field.field.node.projet.field_diaporama
+    - field.field.node.projet.field_document
     - field.field.node.projet.field_equipes
     - field.field.node.projet.field_evenements_lies
     - field.field.node.projet.field_ge
@@ -66,6 +67,7 @@ content:
 hidden:
   field_adresse: true
   field_comparatifs_associes: true
+  field_document: true
   field_equipes: true
   field_evenements_lies: true
   field_ge: true

+ 49 - 0
config/sync/field.field.node.projet.field_document.yml

@@ -0,0 +1,49 @@
+uuid: 21695ea2-4ce4-49c9-9962-a75258bc162e
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_document
+    - node.type.projet
+    - paragraphs.paragraphs_type.doc_and_thumb
+  module:
+    - entity_reference_revisions
+id: node.projet.field_document
+field_name: field_document
+entity_type: node
+bundle: projet
+label: Documents
+description: ''
+required: false
+translatable: true
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:paragraph'
+  handler_settings:
+    negate: 0
+    target_bundles:
+      doc_and_thumb: doc_and_thumb
+    target_bundles_drag_drop:
+      doc_and_thumb:
+        enabled: true
+        weight: 8
+      equipes:
+        weight: 9
+        enabled: false
+      partenaires:
+        weight: 10
+        enabled: false
+      personne:
+        weight: 11
+        enabled: false
+      sous_partie_programme:
+        weight: 12
+        enabled: false
+      sous_partie_programme_contents:
+        weight: 13
+        enabled: false
+      textes:
+        weight: 14
+        enabled: false
+field_type: entity_reference_revisions

+ 19 - 2
config/sync/page_manager.page_variant.node-panels_variant-4.yml

@@ -44,7 +44,7 @@ variant_settings:
         third_party_settings: {  }
         weight: 0
       region: third
-      weight: -8
+      weight: -5
       uuid: fa5671b0-2af1-45de-8eae-3aa8bcc1be7d
       context_mapping:
         entity: node
@@ -61,7 +61,7 @@ variant_settings:
         third_party_settings: {  }
         weight: 0
       region: third
-      weight: -9
+      weight: -6
       uuid: 8366d015-1ffd-4252-b8d3-fbeef9c0cd8d
       context_mapping:
         entity: node
@@ -231,6 +231,23 @@ variant_settings:
       uuid: 9879675e-0278-482d-9ae0-bdffb5241640
       context_mapping:
         field_programme_target_id: node
+    9417d800-7b65-44cb-ac9d-a9d78249824d:
+      id: 'entity_field:node:field_document'
+      label: 'Pour aller plus loin'
+      provider: ctools_block
+      label_display: visible
+      formatter:
+        label: hidden
+        type: entity_reference_revisions_entity_view
+        settings:
+          view_mode: default
+        third_party_settings: {  }
+        weight: 0
+      region: third
+      weight: -4
+      uuid: 9417d800-7b65-44cb-ac9d-a9d78249824d
+      context_mapping:
+        entity: node
   id: panels_variant
   uuid: 905f0d96-a78c-40f1-bb80-f259e145444f
   label: null