Browse Source

added diaporama to CT ressource

bach 2 months ago
parent
commit
c4ccfc9a90

+ 12 - 2
config/sync/core.entity_form_display.node.ressource.default.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.field.node.ressource.field_auteurs
     - field.field.node.ressource.field_collections
     - field.field.node.ressource.field_date_de_parution
+    - field.field.node.ressource.field_diaporama
     - field.field.node.ressource.field_edition
     - field.field.node.ressource.field_evenements_lies
     - field.field.node.ressource.field_fichier
@@ -88,6 +89,7 @@ third_party_settings:
     group_media:
       children:
         - field_image
+        - field_diaporama
         - field_videos
         - field_fichier
       label: Media
@@ -189,6 +191,14 @@ content:
     region: content
     settings: {  }
     third_party_settings: {  }
+  field_diaporama:
+    type: image_image
+    weight: 131
+    region: content
+    settings:
+      progress_indicator: throbber
+      preview_image_style: thumbnail
+    third_party_settings: {  }
   field_edition:
     type: text_textarea
     weight: 128
@@ -209,7 +219,7 @@ content:
     third_party_settings: {  }
   field_fichier:
     type: file_generic
-    weight: 132
+    weight: 133
     region: content
     settings:
       progress_indicator: throbber
@@ -345,7 +355,7 @@ content:
     third_party_settings: {  }
   field_videos:
     type: video_embed_field_textfield
-    weight: 131
+    weight: 132
     region: content
     settings: {  }
     third_party_settings: {  }

+ 12 - 0
config/sync/core.entity_view_display.node.ressource.default.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.field.node.ressource.field_auteurs
     - field.field.node.ressource.field_collections
     - field.field.node.ressource.field_date_de_parution
+    - field.field.node.ressource.field_diaporama
     - field.field.node.ressource.field_edition
     - field.field.node.ressource.field_evenements_lies
     - field.field.node.ressource.field_fichier
@@ -73,6 +74,17 @@ content:
     third_party_settings: {  }
     weight: 6
     region: content
+  field_diaporama:
+    type: image
+    label: above
+    settings:
+      image_link: ''
+      image_style: ''
+      image_loading:
+        attribute: lazy
+    third_party_settings: {  }
+    weight: 15
+    region: content
   field_edition:
     type: text_default
     label: above

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

@@ -8,6 +8,7 @@ dependencies:
     - field.field.node.ressource.field_auteurs
     - field.field.node.ressource.field_collections
     - field.field.node.ressource.field_date_de_parution
+    - field.field.node.ressource.field_diaporama
     - field.field.node.ressource.field_edition
     - field.field.node.ressource.field_evenements_lies
     - field.field.node.ressource.field_fichier
@@ -93,6 +94,7 @@ hidden:
   body: true
   field_collections: true
   field_date_de_parution: true
+  field_diaporama: true
   field_evenements_lies: true
   field_fichier: true
   field_lien: true

+ 2 - 0
config/sync/core.entity_view_display.node.ressource.third.yml

@@ -8,6 +8,7 @@ dependencies:
     - field.field.node.ressource.field_auteurs
     - field.field.node.ressource.field_collections
     - field.field.node.ressource.field_date_de_parution
+    - field.field.node.ressource.field_diaporama
     - field.field.node.ressource.field_edition
     - field.field.node.ressource.field_evenements_lies
     - field.field.node.ressource.field_fichier
@@ -78,6 +79,7 @@ hidden:
   body: true
   field_collections: true
   field_date_de_parution: true
+  field_diaporama: true
   field_edition: true
   field_evenements_lies: true
   field_fichier: true

+ 48 - 0
config/sync/field.field.node.ressource.field_diaporama.yml

@@ -0,0 +1,48 @@
+uuid: 0b2a0262-9967-4504-8d6b-e71cbb0aba06
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_diaporama
+    - node.type.ressource
+  module:
+    - content_translation
+    - image
+third_party_settings:
+  content_translation:
+    translation_sync:
+      alt: alt
+      title: title
+      file: '0'
+id: node.ressource.field_diaporama
+field_name: field_diaporama
+entity_type: node
+bundle: ressource
+label: Diaporama
+description: ''
+required: false
+translatable: true
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:file'
+  handler_settings: {  }
+  file_directory: '[date:custom:Y]-[date:custom:m]'
+  file_extensions: 'png gif jpg jpeg'
+  max_filesize: ''
+  max_resolution: ''
+  min_resolution: ''
+  alt_field: true
+  alt_field_required: true
+  title_field: false
+  title_field_required: false
+  default_image:
+    uuid: ''
+    alt: ''
+    title: ''
+    width: null
+    height: null
+    caption: ''
+  caption_field: 0
+  caption_field_required: 0
+field_type: image