Browse Source

added thésaurus to thématique

bach 2 years ago
parent
commit
378fdd7051

+ 16 - 1
config/sync/core.entity_form_display.node.thematique.default.yml

@@ -9,6 +9,7 @@ dependencies:
     - field.field.node.thematique.field_memo
     - field.field.node.thematique.field_short_description
     - field.field.node.thematique.field_tags
+    - field.field.node.thematique.field_thesaurus
     - field.field.node.thematique.field_visuel
     - field.field.node.thematique.field_workflow
     - image.style.thumbnail
@@ -17,6 +18,7 @@ dependencies:
     - field_group
     - image
     - path
+    - term_reference_tree
     - text
     - workflow
 third_party_settings:
@@ -67,6 +69,7 @@ third_party_settings:
       label: Media
     group_taxonomy:
       children:
+        - field_thesaurus
         - field_tags
       parent_name: group_htabs
       weight: 21
@@ -176,7 +179,7 @@ content:
     type: string_textfield
     region: content
   field_tags:
-    weight: 30
+    weight: 32
     settings:
       match_operator: CONTAINS
       size: 60
@@ -185,6 +188,18 @@ content:
     third_party_settings: {  }
     type: entity_reference_autocomplete
     region: content
+  field_thesaurus:
+    weight: 31
+    settings:
+      start_minimized: true
+      select_parents: true
+      cascading_selection: 0
+      track_list: true
+      max_depth: 0
+      leaves_only: false
+    third_party_settings: {  }
+    type: term_reference_tree
+    region: content
   field_visuel:
     weight: 13
     settings:

+ 13 - 17
config/sync/core.entity_view_display.node.thematique.default.yml

@@ -9,8 +9,10 @@ dependencies:
     - field.field.node.thematique.field_memo
     - field.field.node.thematique.field_short_description
     - field.field.node.thematique.field_tags
+    - field.field.node.thematique.field_thesaurus
     - field.field.node.thematique.field_visuel
     - field.field.node.thematique.field_workflow
+    - image.style.card_full
     - node.type.thematique
   module:
     - image
@@ -24,12 +26,12 @@ content:
   body:
     label: hidden
     type: text_default
-    weight: 101
+    weight: 4
     settings: {  }
     third_party_settings: {  }
     region: content
   field_linked_articles:
-    weight: 105
+    weight: 6
     label: above
     settings:
       link: true
@@ -37,7 +39,7 @@ content:
     type: entity_reference_label
     region: content
   field_linked_materials:
-    weight: 102
+    weight: 5
     label: above
     settings:
       link: true
@@ -45,26 +47,18 @@ content:
     type: entity_reference_label
     region: content
   field_short_description:
-    weight: 107
+    weight: 1
     label: above
     settings:
       link_to_entity: false
     third_party_settings: {  }
     type: string
     region: content
-  field_tags:
-    weight: 103
-    label: above
-    settings:
-      link: true
-    third_party_settings: {  }
-    type: entity_reference_label
-    region: content
   field_visuel:
-    weight: 104
-    label: above
+    weight: 3
+    label: visually_hidden
     settings:
-      image_style: ''
+      image_style: card_full
       image_link: ''
     third_party_settings: {  }
     type: image
@@ -110,20 +104,22 @@ content:
     third_party_settings: {  }
     region: content
   links:
-    weight: 100
+    weight: 2
     region: content
     settings: {  }
     third_party_settings: {  }
   title:
     label: hidden
     type: string
-    weight: -5
+    weight: 0
     region: content
     settings:
       link_to_entity: false
     third_party_settings: {  }
 hidden:
   field_memo: true
+  field_tags: true
+  field_thesaurus: true
   field_workflow: true
   flag_flag_list_template_1: true
   langcode: true

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

@@ -10,6 +10,7 @@ dependencies:
     - field.field.node.thematique.field_memo
     - field.field.node.thematique.field_short_description
     - field.field.node.thematique.field_tags
+    - field.field.node.thematique.field_thesaurus
     - field.field.node.thematique.field_visuel
     - field.field.node.thematique.field_workflow
     - node.type.thematique
@@ -93,6 +94,7 @@ hidden:
   field_memo: true
   field_short_description: true
   field_tags: true
+  field_thesaurus: true
   field_visuel: true
   field_workflow: true
   langcode: true

+ 37 - 0
config/sync/field.field.node.thematique.field_thesaurus.yml

@@ -0,0 +1,37 @@
+uuid: ac0d35f6-fd4a-454e-8c7a-704c180c60c9
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_thesaurus
+    - node.type.thematique
+    - taxonomy.vocabulary.thesaurus
+  module:
+    - unique_content_field_validation
+third_party_settings:
+  unique_content_field_validation:
+    unique: false
+    unique_text: ''
+    unique_multivalue: true
+    unique_multivalue_text: ''
+id: node.thematique.field_thesaurus
+field_name: field_thesaurus
+entity_type: node
+bundle: thematique
+label: Thesaurus
+description: ''
+required: false
+translatable: true
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:taxonomy_term'
+  handler_settings:
+    target_bundles:
+      thesaurus: thesaurus
+    sort:
+      field: name
+      direction: asc
+    auto_create: false
+    auto_create_bundle: ''
+field_type: entity_reference

+ 4 - 0
config/sync/field.storage.node.field_thesaurus.yml

@@ -3,8 +3,12 @@ langcode: en
 status: true
 dependencies:
   module:
+    - field_permissions
     - node
     - taxonomy
+third_party_settings:
+  field_permissions:
+    permission_type: public
 id: node.field_thesaurus
 field_name: field_thesaurus
 entity_type: node

+ 20 - 0
config/sync/gdpr_fields.gdpr_fields_config.node.yml

@@ -0,0 +1,20 @@
+uuid: 0430c71d-83a2-4254-8bd1-214299f802cc
+langcode: fr
+status: true
+dependencies: {  }
+id: node
+bundles:
+  thematique:
+    field_thesaurus:
+      bundle: thematique
+      name: field_thesaurus
+      entity_type_id: node
+      rtf: 'no'
+      rta: 'no'
+      enabled: false
+      anonymizer: ''
+      notes: ''
+      relationship: 0
+      sars_filename: ''
+filenames:
+  thematique: ''