Selaa lähdekoodia

projets liés

bach 1 kuukausi sitten
vanhempi
commit
279c3041e8

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

@@ -12,6 +12,7 @@ dependencies:
     - field.field.node.ressource.field_images
     - field.field.node.ressource.field_liens
     - field.field.node.ressource.field_mots_clefs
+    - field.field.node.ressource.field_projets_liee
     - field.field.node.ressource.field_ress
     - field.field.node.ressource.field_sous_titre
     - field.field.node.ressource.field_textes
@@ -67,6 +68,7 @@ third_party_settings:
     group_liens:
       children:
         - field_liens
+        - field_projets_liee
         - field_ress
         - field_actu_liee
       label: Liens
@@ -142,7 +144,7 @@ mode: default
 content:
   field_actu_liee:
     type: entity_reference_autocomplete
-    weight: 129
+    weight: 130
     region: content
     settings:
       match_operator: CONTAINS
@@ -211,7 +213,7 @@ content:
       size: 60
       placeholder: ''
     third_party_settings: {  }
-  field_ress:
+  field_projets_liee:
     type: entity_reference_autocomplete
     weight: 128
     region: content
@@ -221,6 +223,16 @@ content:
       size: 60
       placeholder: ''
     third_party_settings: {  }
+  field_ress:
+    type: entity_reference_autocomplete
+    weight: 129
+    region: content
+    settings:
+      match_operator: CONTAINS
+      match_limit: 10
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
   field_sous_titre:
     type: string_textfield
     weight: -4

+ 22 - 11
config/sync/core.entity_view_display.node.ressource.default.yml

@@ -12,6 +12,7 @@ dependencies:
     - field.field.node.ressource.field_images
     - field.field.node.ressource.field_liens
     - field.field.node.ressource.field_mots_clefs
+    - field.field.node.ressource.field_projets_liee
     - field.field.node.ressource.field_ress
     - field.field.node.ressource.field_sous_titre
     - field.field.node.ressource.field_textes
@@ -38,14 +39,14 @@ content:
     settings:
       link: true
     third_party_settings: {  }
-    weight: 12
+    weight: 13
     region: content
   field_auteur_s_:
     type: text_default
     label: visually_hidden
     settings: {  }
     third_party_settings: {  }
-    weight: 3
+    weight: 4
     region: content
   field_collections:
     type: entity_reference_label
@@ -53,7 +54,7 @@ content:
     settings:
       link: true
     third_party_settings: {  }
-    weight: 5
+    weight: 6
     region: content
   field_date_de_parution:
     type: datetime_default
@@ -62,14 +63,14 @@ content:
       timezone_override: ''
       format_type: short
     third_party_settings: {  }
-    weight: 2
+    weight: 3
     region: content
   field_edition:
     type: text_default
     label: visually_hidden
     settings: {  }
     third_party_settings: {  }
-    weight: 4
+    weight: 5
     region: content
   field_fichiers:
     type: file_default
@@ -85,6 +86,8 @@ content:
     settings:
       image_style: ''
       image_link: ''
+      image_loading:
+        attribute: lazy
     third_party_settings: {  }
     weight: 8
     region: content
@@ -106,11 +109,19 @@ content:
     settings:
       link: true
     third_party_settings: {  }
-    weight: 13
+    weight: 14
+    region: content
+  field_projets_liee:
+    type: entity_reference_label
+    label: above
+    settings:
+      link: true
+    third_party_settings: {  }
+    weight: 12
     region: content
   field_ress:
     type: entity_reference_label
-    label: visually_hidden
+    label: above
     settings:
       link: true
     third_party_settings: {  }
@@ -122,7 +133,7 @@ content:
     settings:
       link_to_entity: false
     third_party_settings: {  }
-    weight: 1
+    weight: 2
     region: content
   field_textes:
     type: entity_reference_revisions_entity_view
@@ -131,7 +142,7 @@ content:
       view_mode: default
       link: ''
     third_party_settings: {  }
-    weight: 14
+    weight: 15
     region: content
   field_type_de_ressource:
     type: entity_reference_label
@@ -139,7 +150,7 @@ content:
     settings:
       link: true
     third_party_settings: {  }
-    weight: 0
+    weight: 1
     region: content
   field_videos:
     type: video_embed_field_video
@@ -159,7 +170,7 @@ content:
       linked: true
       tag: h2
     third_party_settings: {  }
-    weight: -50
+    weight: 0
     region: content
 hidden:
   created: true

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

@@ -13,6 +13,7 @@ dependencies:
     - field.field.node.ressource.field_images
     - field.field.node.ressource.field_liens
     - field.field.node.ressource.field_mots_clefs
+    - field.field.node.ressource.field_projets_liee
     - field.field.node.ressource.field_ress
     - field.field.node.ressource.field_sous_titre
     - field.field.node.ressource.field_textes
@@ -97,6 +98,7 @@ hidden:
   field_edition: true
   field_fichiers: true
   field_liens: true
+  field_projets_liee: true
   field_ress: true
   field_textes: true
   field_videos: true

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

@@ -13,6 +13,7 @@ dependencies:
     - field.field.node.ressource.field_images
     - field.field.node.ressource.field_liens
     - field.field.node.ressource.field_mots_clefs
+    - field.field.node.ressource.field_projets_liee
     - field.field.node.ressource.field_ress
     - field.field.node.ressource.field_sous_titre
     - field.field.node.ressource.field_textes
@@ -110,6 +111,7 @@ hidden:
   field_collections: true
   field_fichiers: true
   field_liens: true
+  field_projets_liee: true
   field_ress: true
   field_textes: true
   field_videos: true

+ 29 - 0
config/sync/field.field.node.ressource.field_projets_liee.yml

@@ -0,0 +1,29 @@
+uuid: aeb56f7f-c4a9-4526-b6c8-28e6cd12f84f
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_projets_liee
+    - node.type.projet
+    - node.type.ressource
+id: node.ressource.field_projets_liee
+field_name: field_projets_liee
+entity_type: node
+bundle: ressource
+label: 'Projet(s) lié(s)'
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:node'
+  handler_settings:
+    target_bundles:
+      projet: projet
+    sort:
+      field: _none
+      direction: ASC
+    auto_create: false
+    auto_create_bundle: ''
+field_type: entity_reference

+ 19 - 0
config/sync/field.storage.node.field_projets_liee.yml

@@ -0,0 +1,19 @@
+uuid: b6c3a689-a3d1-4b11-8afc-fda58f3137fa
+langcode: fr
+status: true
+dependencies:
+  module:
+    - node
+id: node.field_projets_liee
+field_name: field_projets_liee
+entity_type: node
+type: entity_reference
+settings:
+  target_type: node
+module: core
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false