Browse Source

added new paragraphe 'Doc & thumb' field to programme #1456

bach 2 years ago
parent
commit
0f9e983403

+ 21 - 0
config/sync/core.entity_form_display.node.programme.default.yml

@@ -6,6 +6,7 @@ dependencies:
     - field.field.node.programme.body
     - field.field.node.programme.field_actif
     - field.field.node.programme.field_diaporama
+    - field.field.node.programme.field_document
     - field.field.node.programme.field_fichier
     - field.field.node.programme.field_logo
     - field.field.node.programme.field_partenaires
@@ -89,6 +90,7 @@ third_party_settings:
       children:
         - field_diaporama
         - field_fichier
+        - field_document
       parent_name: group_tabs
       weight: 20
       format_type: tab
@@ -158,6 +160,25 @@ content:
     third_party_settings: {  }
     type: image_image
     region: content
+  field_document:
+    type: paragraphs
+    weight: 126
+    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: doc_and_thumb
+      features:
+        add_above: '0'
+        collapse_edit_all: collapse_edit_all
+        duplicate: '0'
+    third_party_settings: {  }
+    region: content
   field_fichier:
     weight: 125
     settings:

+ 44 - 0
config/sync/core.entity_form_display.paragraph.doc_and_thumb.default.yml

@@ -0,0 +1,44 @@
+uuid: b5dc7523-5d26-4b03-8478-47329410a2db
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.paragraph.doc_and_thumb.field_document
+    - field.field.paragraph.doc_and_thumb.field_titre
+    - field.field.paragraph.doc_and_thumb.field_vignette
+    - image.style.thumbnail
+    - paragraphs.paragraphs_type.doc_and_thumb
+  module:
+    - file
+    - image
+id: paragraph.doc_and_thumb.default
+targetEntityType: paragraph
+bundle: doc_and_thumb
+mode: default
+content:
+  field_document:
+    weight: 2
+    settings:
+      progress_indicator: throbber
+    third_party_settings: {  }
+    type: file_generic
+    region: content
+  field_titre:
+    weight: 1
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+    type: string_textfield
+    region: content
+  field_vignette:
+    weight: 0
+    settings:
+      progress_indicator: throbber
+      preview_image_style: thumbnail
+    third_party_settings: {  }
+    type: image_image
+    region: content
+hidden:
+  created: true
+  status: true

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

@@ -6,6 +6,7 @@ dependencies:
     - field.field.node.programme.body
     - field.field.node.programme.field_actif
     - field.field.node.programme.field_diaporama
+    - field.field.node.programme.field_document
     - field.field.node.programme.field_fichier
     - field.field.node.programme.field_logo
     - field.field.node.programme.field_partenaires
@@ -47,6 +48,15 @@ content:
     third_party_settings: {  }
     type: image
     region: content
+  field_document:
+    type: entity_reference_revisions_entity_view
+    weight: 8
+    label: above
+    settings:
+      view_mode: default
+      link: ''
+    third_party_settings: {  }
+    region: content
   field_fichier:
     weight: 4
     label: hidden

+ 26 - 1
config/sync/core.entity_view_display.node.programme.teaser.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.field.node.programme.body
     - field.field.node.programme.field_actif
     - field.field.node.programme.field_diaporama
+    - field.field.node.programme.field_document
     - field.field.node.programme.field_fichier
     - field.field.node.programme.field_logo
     - field.field.node.programme.field_partenaires
@@ -15,8 +16,15 @@ dependencies:
     - field.field.node.programme.field_textes
     - node.type.programme
   module:
+    - panelizer
     - text
     - user
+third_party_settings:
+  panelizer:
+    enable: false
+    custom: false
+    allow: false
+    default: default
 id: node.programme.teaser
 targetEntityType: node
 bundle: programme
@@ -30,14 +38,31 @@ content:
       trim_length: 600
     third_party_settings: {  }
     region: content
+  computed_projets_references:
+    label: hidden
+    weight: -5
+    region: content
+    settings:
+      link: true
+    third_party_settings: {  }
+    type: entity_reference_label
+  computed_themes_references:
+    label: hidden
+    weight: -5
+    region: content
+    settings:
+      link: true
+    third_party_settings: {  }
+    type: entity_reference_label
   links:
     weight: 100
+    region: content
     settings: {  }
     third_party_settings: {  }
-    region: content
 hidden:
   field_actif: true
   field_diaporama: true
+  field_document: true
   field_fichier: true
   field_logo: true
   field_partenaires: true

+ 45 - 0
config/sync/core.entity_view_display.paragraph.doc_and_thumb.default.yml

@@ -0,0 +1,45 @@
+uuid: 749e4e86-ff0e-4fec-b5f6-15880fad71ce
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.paragraph.doc_and_thumb.field_document
+    - field.field.paragraph.doc_and_thumb.field_titre
+    - field.field.paragraph.doc_and_thumb.field_vignette
+    - image.style.medium
+    - paragraphs.paragraphs_type.doc_and_thumb
+  module:
+    - file
+    - image
+id: paragraph.doc_and_thumb.default
+targetEntityType: paragraph
+bundle: doc_and_thumb
+mode: default
+content:
+  field_document:
+    weight: 2
+    label: visually_hidden
+    settings:
+      use_description_as_link_text: true
+    third_party_settings: {  }
+    type: file_default
+    region: content
+  field_titre:
+    weight: 1
+    label: visually_hidden
+    settings:
+      link_to_entity: false
+    third_party_settings: {  }
+    type: string
+    region: content
+  field_vignette:
+    weight: 0
+    label: visually_hidden
+    settings:
+      image_style: medium
+      image_link: ''
+    third_party_settings: {  }
+    type: image
+    region: content
+hidden:
+  search_api_excerpt: true

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

@@ -0,0 +1,49 @@
+uuid: 1bb1abe2-8c4d-458f-9842-1805f8acdd25
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_document
+    - node.type.programme
+    - paragraphs.paragraphs_type.doc_and_thumb
+  module:
+    - entity_reference_revisions
+id: node.programme.field_document
+field_name: field_document
+entity_type: node
+bundle: programme
+label: Documents
+description: ''
+required: false
+translatable: false
+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

+ 27 - 0
config/sync/field.field.paragraph.doc_and_thumb.field_document.yml

@@ -0,0 +1,27 @@
+uuid: f1408633-eb7a-4b65-a0df-b2678a45c7ec
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_document
+    - paragraphs.paragraphs_type.doc_and_thumb
+  module:
+    - file
+id: paragraph.doc_and_thumb.field_document
+field_name: field_document
+entity_type: paragraph
+bundle: doc_and_thumb
+label: Document
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  file_directory: '[date:custom:Y]-[date:custom:m]'
+  file_extensions: pdf
+  max_filesize: ''
+  description_field: false
+  handler: 'default:file'
+  handler_settings: {  }
+field_type: file

+ 19 - 0
config/sync/field.field.paragraph.doc_and_thumb.field_titre.yml

@@ -0,0 +1,19 @@
+uuid: ac194b0b-1ba4-41f8-8e3f-f8bed73d4e11
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_titre
+    - paragraphs.paragraphs_type.doc_and_thumb
+id: paragraph.doc_and_thumb.field_titre
+field_name: field_titre
+entity_type: paragraph
+bundle: doc_and_thumb
+label: Titre
+description: ''
+required: false
+translatable: true
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string

+ 38 - 0
config/sync/field.field.paragraph.doc_and_thumb.field_vignette.yml

@@ -0,0 +1,38 @@
+uuid: 92929459-931b-4b05-8cf9-4f096c653a4e
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_vignette
+    - paragraphs.paragraphs_type.doc_and_thumb
+  module:
+    - image
+id: paragraph.doc_and_thumb.field_vignette
+field_name: field_vignette
+entity_type: paragraph
+bundle: doc_and_thumb
+label: Vignette
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  file_directory: '[date:custom:Y]-[date:custom:m]'
+  file_extensions: 'png gif jpg jpeg'
+  max_filesize: ''
+  max_resolution: ''
+  min_resolution: ''
+  alt_field: false
+  alt_field_required: false
+  title_field: false
+  title_field_required: false
+  default_image:
+    uuid: ''
+    alt: ''
+    title: ''
+    width: null
+    height: null
+  handler: 'default:file'
+  handler_settings: {  }
+field_type: image

+ 21 - 0
config/sync/field.storage.node.field_document.yml

@@ -0,0 +1,21 @@
+uuid: 0a587aa0-f8b1-4d0c-a88a-7f25f8138476
+langcode: fr
+status: true
+dependencies:
+  module:
+    - entity_reference_revisions
+    - node
+    - paragraphs
+id: node.field_document
+field_name: field_document
+entity_type: node
+type: entity_reference_revisions
+settings:
+  target_type: paragraph
+module: entity_reference_revisions
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 23 - 0
config/sync/field.storage.paragraph.field_document.yml

@@ -0,0 +1,23 @@
+uuid: aee2026e-f89f-411f-bd0e-ff895500f348
+langcode: fr
+status: true
+dependencies:
+  module:
+    - file
+    - paragraphs
+id: paragraph.field_document
+field_name: field_document
+entity_type: paragraph
+type: file
+settings:
+  display_field: false
+  display_default: false
+  uri_scheme: public
+  target_type: file
+module: file
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 30 - 0
config/sync/field.storage.paragraph.field_vignette.yml

@@ -0,0 +1,30 @@
+uuid: 51397961-734a-4bb4-8bc2-ad7823b5edf6
+langcode: fr
+status: true
+dependencies:
+  module:
+    - file
+    - image
+    - paragraphs
+id: paragraph.field_vignette
+field_name: field_vignette
+entity_type: paragraph
+type: image
+settings:
+  uri_scheme: public
+  default_image:
+    uuid: ''
+    alt: ''
+    title: ''
+    width: null
+    height: null
+  target_type: file
+  display_field: false
+  display_default: false
+module: image
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 19 - 1
config/sync/page_manager.page_variant.node-panels_variant-0.yml

@@ -10,6 +10,7 @@ dependencies:
     - views.view.projets
   module:
     - ctools
+    - ctools_block
     - panels
     - popsu_link_block
     - views
@@ -37,7 +38,7 @@ variant_settings:
       views_label: ''
       items_per_page: none
       region: third
-      weight: -10
+      weight: -3
       uuid: 286723b9-60de-46d0-9891-42e0910e604d
       context_mapping: {  }
     6319006a-015c-459c-996b-79d404f7455f:
@@ -115,6 +116,23 @@ variant_settings:
       weight: 0
       uuid: 9c5741a0-e8e2-4895-88a7-c36d3825e33c
       context_mapping: {  }
+    c80f54a0-8f21-4c56-8341-eab59b009329:
+      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: c80f54a0-8f21-4c56-8341-eab59b009329
+      context_mapping:
+        entity: node
   id: panels_variant
   uuid: 9752d3e8-fdc6-419d-95bb-079a2c3088b3
   label: null

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

@@ -79,7 +79,7 @@ variant_settings:
           timezone_override: ''
           format: date_only
           force_chronological: false
-          add_classes: 0
+          add_classes: false
         third_party_settings: {  }
         weight: 0
       region: second
@@ -150,7 +150,7 @@ variant_settings:
           timezone_override: ''
           format: date_only
           force_chronological: false
-          add_classes: 0
+          add_classes: false
         third_party_settings: {  }
         weight: 0
       region: second

+ 11 - 0
config/sync/paragraphs.paragraphs_type.doc_and_thumb.yml

@@ -0,0 +1,11 @@
+uuid: 16990b7a-37a8-463e-8e95-01e12fe852b2
+langcode: fr
+status: true
+dependencies: {  }
+id: doc_and_thumb
+label: 'doc and thumb'
+icon_uuid: null
+icon_default: null
+description: ''
+save_empty: false
+behavior_plugins: {  }