Bladeren bron

projet layout

bach 3 jaren geleden
bovenliggende
commit
cf3141040c

+ 28 - 47
config/sync/core.entity_view_display.node.projet.default.yml

@@ -23,11 +23,16 @@ dependencies:
   module:
     - address
     - entity_reference_revisions
-    - geofield
     - image
-    - leaflet_more_markers
+    - panelizer
     - text
     - user
+third_party_settings:
+  panelizer:
+    enable: false
+    custom: false
+    allow: false
+    default: default
 id: node.projet.default
 targetEntityType: node
 bundle: projet
@@ -36,19 +41,19 @@ content:
   body:
     label: hidden
     type: text_default
-    weight: 101
+    weight: 3
     settings: {  }
     third_party_settings: {  }
     region: content
   field_adresse:
-    weight: 115
+    weight: 12
     label: above
     settings: {  }
     third_party_settings: {  }
     type: address_default
     region: content
   field_comparatifs_associes:
-    weight: 106
+    weight: 7
     label: above
     settings:
       link: true
@@ -56,8 +61,8 @@ content:
     type: entity_reference_label
     region: content
   field_diaporama:
-    weight: 107
-    label: above
+    weight: 2
+    label: hidden
     settings:
       image_style: ''
       image_link: ''
@@ -66,7 +71,7 @@ content:
     region: content
   field_equipes:
     type: entity_reference_revisions_entity_view
-    weight: 111
+    weight: 10
     label: above
     settings:
       view_mode: default
@@ -74,39 +79,16 @@ content:
     third_party_settings: {  }
     region: content
   field_evenements_lies:
-    weight: 109
+    weight: 8
     label: above
     settings:
       link: true
     third_party_settings: {  }
     type: entity_reference_label
     region: content
-  field_ge:
-    weight: 116
-    label: above
-    settings:
-      output_format: wkt
-      output_escape: true
-    third_party_settings: {  }
-    type: geofield_default
-    region: content
-  field_map_marker:
-    weight: 117
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    type: map_marker_formatter
-    region: content
-  field_memo:
-    weight: 114
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    type: basic_string
-    region: content
   field_partenaires:
     type: entity_reference_revisions_entity_view
-    weight: 112
+    weight: 11
     label: above
     settings:
       view_mode: default
@@ -114,15 +96,15 @@ content:
     third_party_settings: {  }
     region: content
   field_programme:
-    weight: 102
-    label: above
+    weight: 0
+    label: hidden
     settings:
       link: true
     third_party_settings: {  }
     type: entity_reference_label
     region: content
   field_projets_lies:
-    weight: 104
+    weight: 5
     label: above
     settings:
       link: true
@@ -130,7 +112,7 @@ content:
     type: entity_reference_label
     region: content
   field_ressources_liees:
-    weight: 110
+    weight: 9
     label: above
     settings:
       link: true
@@ -138,8 +120,8 @@ content:
     type: entity_reference_label
     region: content
   field_textes:
-    weight: 113
-    label: above
+    weight: 4
+    label: hidden
     settings:
       view_mode: default
       link: ''
@@ -147,7 +129,7 @@ content:
     type: entity_reference_revisions_entity_view
     region: content
   field_themes_lies:
-    weight: 105
+    weight: 6
     label: above
     settings:
       link: true
@@ -155,18 +137,17 @@ content:
     type: entity_reference_label
     region: content
   field_ville:
-    weight: 103
-    label: above
+    weight: 1
+    label: hidden
     settings:
       link: true
     third_party_settings: {  }
     type: entity_reference_label
     region: content
-  links:
-    weight: 100
-    settings: {  }
-    third_party_settings: {  }
-    region: content
 hidden:
+  field_ge: true
+  field_map_marker: true
+  field_memo: true
   langcode: true
+  links: true
   search_api_excerpt: true

+ 26 - 6
config/sync/core.entity_view_display.node.projet.teaser.yml

@@ -20,10 +20,19 @@ dependencies:
     - field.field.node.projet.field_textes
     - field.field.node.projet.field_themes_lies
     - field.field.node.projet.field_ville
+    - image.style.medium
     - node.type.projet
   module:
+    - image
+    - panelizer
     - text
     - user
+third_party_settings:
+  panelizer:
+    enable: false
+    custom: false
+    allow: false
+    default: default
 id: node.projet.teaser
 targetEntityType: node
 bundle: projet
@@ -32,31 +41,42 @@ content:
   body:
     label: hidden
     type: text_summary_or_trimmed
-    weight: 101
+    weight: 2
     settings:
       trim_length: 600
     third_party_settings: {  }
     region: content
-  links:
-    weight: 100
-    settings: {  }
+  field_diaporama:
+    type: image
+    weight: 1
+    region: content
+    label: visually_hidden
+    settings:
+      image_style: medium
+      image_link: content
     third_party_settings: {  }
+  field_programme:
+    type: entity_reference_label
+    weight: 0
     region: content
+    label: hidden
+    settings:
+      link: true
+    third_party_settings: {  }
 hidden:
   field_adresse: true
   field_comparatifs_associes: true
-  field_diaporama: true
   field_equipes: true
   field_evenements_lies: true
   field_ge: true
   field_map_marker: true
   field_memo: true
   field_partenaires: true
-  field_programme: true
   field_projets_lies: true
   field_ressources_liees: true
   field_textes: true
   field_themes_lies: true
   field_ville: true
   langcode: true
+  links: true
   search_api_excerpt: true

+ 33 - 56
config/sync/core.entity_view_display.node.ressource.default.yml

@@ -25,10 +25,16 @@ dependencies:
     - datetime
     - file
     - image
-    - link
+    - panelizer
     - text
     - user
     - video_embed_field
+third_party_settings:
+  panelizer:
+    enable: false
+    custom: false
+    allow: false
+    default: default
 id: node.ressource.default
 targetEntityType: node
 bundle: ressource
@@ -37,20 +43,20 @@ content:
   body:
     label: hidden
     type: text_default
-    weight: 101
+    weight: 7
     settings: {  }
     third_party_settings: {  }
     region: content
   field_auteurs:
-    weight: 107
+    weight: 8
     label: above
     settings: {  }
     third_party_settings: {  }
     type: text_default
     region: content
   field_date_de_parution:
-    weight: 109
-    label: above
+    weight: 5
+    label: hidden
     settings:
       format_type: medium
       timezone_override: ''
@@ -58,14 +64,14 @@ content:
     type: datetime_default
     region: content
   field_edition:
-    weight: 108
+    weight: 9
     label: above
     settings: {  }
     third_party_settings: {  }
     type: text_default
     region: content
   field_evenements_lies:
-    weight: 114
+    weight: 12
     label: above
     settings:
       link: true
@@ -73,7 +79,7 @@ content:
     type: entity_reference_label
     region: content
   field_fichier:
-    weight: 112
+    weight: 11
     label: above
     settings:
       use_description_as_link_text: true
@@ -81,60 +87,32 @@ content:
     type: file_default
     region: content
   field_image:
-    weight: 110
-    label: above
+    weight: 6
+    label: hidden
     settings:
       image_style: ''
       image_link: ''
     third_party_settings: {  }
     type: image
     region: content
-  field_lien:
-    weight: 113
-    label: above
-    settings:
-      trim_length: 80
-      url_only: false
-      url_plain: false
-      rel: ''
-      target: ''
-    third_party_settings: {  }
-    type: link
-    region: content
-  field_memo:
-    weight: 118
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    type: basic_string
-    region: content
-  field_poid:
-    weight: 119
-    label: above
-    settings:
-      thousand_separator: ''
-      prefix_suffix: true
-    third_party_settings: {  }
-    type: number_integer
-    region: content
   field_programme:
-    weight: 102
-    label: above
+    weight: 0
+    label: hidden
     settings:
       link: true
     third_party_settings: {  }
     type: entity_reference_label
     region: content
   field_projet:
-    weight: 116
-    label: above
+    weight: 1
+    label: hidden
     settings:
       link: true
     third_party_settings: {  }
     type: entity_reference_label
     region: content
   field_ressources_liees:
-    weight: 115
+    weight: 13
     label: above
     settings:
       link: true
@@ -142,32 +120,32 @@ content:
     type: entity_reference_label
     region: content
   field_sous_titre:
-    weight: 106
-    label: above
+    weight: 4
+    label: hidden
     settings:
       link_to_entity: false
     third_party_settings: {  }
     type: string
     region: content
   field_theme:
-    weight: 117
-    label: above
+    weight: 2
+    label: hidden
     settings:
       link: true
     third_party_settings: {  }
     type: entity_reference_label
     region: content
   field_type_de_ressource:
-    weight: 105
-    label: above
+    weight: 3
+    label: hidden
     settings:
       link: true
     third_party_settings: {  }
     type: entity_reference_label
     region: content
   field_videos:
-    weight: 111
-    label: above
+    weight: 10
+    label: hidden
     settings:
       responsive: true
       width: 854
@@ -176,11 +154,10 @@ content:
     third_party_settings: {  }
     type: video_embed_field_video
     region: content
-  links:
-    weight: 100
-    settings: {  }
-    third_party_settings: {  }
-    region: content
 hidden:
+  field_lien: true
+  field_memo: true
+  field_poid: true
   langcode: true
+  links: true
   search_api_excerpt: true

+ 30 - 11
config/sync/core.entity_view_display.node.ressource.teaser.yml

@@ -21,44 +21,63 @@ dependencies:
     - field.field.node.ressource.field_theme
     - field.field.node.ressource.field_type_de_ressource
     - field.field.node.ressource.field_videos
+    - image.style.medium
     - node.type.ressource
   module:
-    - text
+    - image
+    - panelizer
     - user
+third_party_settings:
+  panelizer:
+    enable: false
+    custom: false
+    allow: false
+    default: default
 id: node.ressource.teaser
 targetEntityType: node
 bundle: ressource
 mode: teaser
 content:
-  body:
+  field_image:
+    type: image
+    weight: 2
+    region: content
     label: hidden
-    type: text_summary_or_trimmed
-    weight: 101
     settings:
-      trim_length: 600
+      image_style: medium
+      image_link: content
     third_party_settings: {  }
+  field_programme:
+    type: entity_reference_label
+    weight: 0
     region: content
-  links:
-    weight: 100
-    settings: {  }
+    label: hidden
+    settings:
+      link: true
     third_party_settings: {  }
+  field_sous_titre:
+    type: string
+    weight: 1
     region: content
+    label: hidden
+    settings:
+      link_to_entity: false
+    third_party_settings: {  }
 hidden:
+  body: true
   field_auteurs: true
   field_date_de_parution: true
   field_edition: true
   field_evenements_lies: true
   field_fichier: true
-  field_image: true
   field_lien: true
   field_memo: true
   field_poid: true
-  field_programme: true
   field_projet: true
   field_ressources_liees: true
-  field_sous_titre: true
   field_theme: true
   field_type_de_ressource: true
   field_videos: true
   langcode: true
+  links: true
   search_api_excerpt: true

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

@@ -72,9 +72,9 @@ variant_settings:
       label_display: visible
       formatter:
         label: hidden
-        type: entity_reference_label
+        type: entity_reference_entity_view
         settings:
-          link: true
+          view_mode: teaser
         third_party_settings: {  }
         weight: 0
       region: bottom
@@ -89,9 +89,9 @@ variant_settings:
       label_display: visible
       formatter:
         label: above
-        type: entity_reference_label
+        type: entity_reference_entity_view
         settings:
-          link: true
+          view_mode: teaser
         third_party_settings: {  }
         weight: 0
       region: bottom

+ 260 - 0
config/sync/page_manager.page_variant.node-panels_variant-4.yml

@@ -0,0 +1,260 @@
+uuid: ac45e0e3-bfeb-4ae8-a824-78e12e36e7f3
+langcode: fr
+status: true
+dependencies:
+  config:
+    - page_manager.page.node
+    - views.view.programme_toc
+  module:
+    - ctools
+    - ctools_block
+    - panels
+    - views
+id: node-panels_variant-4
+label: Projets
+variant: panels_variant
+variant_settings:
+  blocks:
+    aaa29472-a0d5-4a79-91d5-2509173a814f:
+      id: 'entity_field:node:body'
+      label: Corps
+      provider: ctools_block
+      label_display: '0'
+      formatter:
+        label: hidden
+        type: text_default
+        settings: {  }
+        third_party_settings: {  }
+        weight: 0
+      region: second
+      weight: -4
+      uuid: aaa29472-a0d5-4a79-91d5-2509173a814f
+      context_mapping:
+        entity: node
+    fa5671b0-2af1-45de-8eae-3aa8bcc1be7d:
+      id: 'entity_field:node:field_evenements_lies'
+      label: 'Évènements liés'
+      provider: ctools_block
+      label_display: visible
+      formatter:
+        label: hidden
+        type: entity_reference_label
+        settings:
+          link: true
+        third_party_settings: {  }
+        weight: 0
+      region: third
+      weight: -1
+      uuid: fa5671b0-2af1-45de-8eae-3aa8bcc1be7d
+      context_mapping:
+        entity: node
+    8366d015-1ffd-4252-b8d3-fbeef9c0cd8d:
+      id: 'entity_field:node:field_ressources_liees'
+      label: 'Ressources liées'
+      provider: ctools_block
+      label_display: visible
+      formatter:
+        label: hidden
+        type: entity_reference_label
+        settings:
+          link: true
+        third_party_settings: {  }
+        weight: 0
+      region: third
+      weight: -2
+      uuid: 8366d015-1ffd-4252-b8d3-fbeef9c0cd8d
+      context_mapping:
+        entity: node
+    78dec81a-9c13-4c3e-8c3d-e1e9950da62a:
+      id: 'entity_field:node:title'
+      label: Titre
+      provider: ctools_block
+      label_display: '0'
+      formatter:
+        label: hidden
+        type: string
+        settings:
+          link_to_entity: false
+        third_party_settings: {  }
+        weight: 0
+      region: second
+      weight: -5
+      uuid: 78dec81a-9c13-4c3e-8c3d-e1e9950da62a
+      context_mapping:
+        entity: node
+    01b41554-b789-4460-a207-baf008278aec:
+      id: 'entity_field:node:field_diaporama'
+      label: Diaporama
+      provider: ctools_block
+      label_display: '0'
+      formatter:
+        label: hidden
+        type: image
+        settings:
+          image_style: medium
+          image_link: ''
+        third_party_settings: {  }
+        weight: 0
+      region: second
+      weight: -6
+      uuid: 01b41554-b789-4460-a207-baf008278aec
+      context_mapping:
+        entity: node
+    dc51d922-4083-40a8-9790-12c389b44e80:
+      id: 'entity_field:node:field_comparatifs_associes'
+      label: 'Comparatifs associés'
+      provider: ctools_block
+      label_display: visible
+      formatter:
+        label: hidden
+        type: entity_reference_label
+        settings:
+          link: true
+        third_party_settings: {  }
+        weight: 0
+      region: third
+      weight: 0
+      uuid: dc51d922-4083-40a8-9790-12c389b44e80
+      context_mapping:
+        entity: node
+    4a9634d1-b1a3-48c3-869b-487350961e1f:
+      id: 'entity_field:node:field_partenaires'
+      label: Partenaires
+      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: 4a9634d1-b1a3-48c3-869b-487350961e1f
+      context_mapping:
+        entity: node
+    516b4be2-1072-405a-9b08-7f5c6b629989:
+      id: 'entity_field:node:field_programme'
+      label: 'Programme Popsu'
+      provider: ctools_block
+      label_display: '0'
+      formatter:
+        label: hidden
+        type: entity_reference_label
+        settings:
+          link: true
+        third_party_settings: {  }
+        weight: 0
+      region: first
+      weight: -6
+      uuid: 516b4be2-1072-405a-9b08-7f5c6b629989
+      context_mapping:
+        entity: node
+    8e359f44-255d-4349-a740-8e9db75ebced:
+      id: 'entity_field:node:field_projets_lies'
+      label: 'Projets liés'
+      provider: ctools_block
+      label_display: visible
+      formatter:
+        label: hidden
+        type: entity_reference_label
+        settings:
+          link: true
+        third_party_settings: {  }
+        weight: 0
+      region: third
+      weight: 1
+      uuid: 8e359f44-255d-4349-a740-8e9db75ebced
+      context_mapping:
+        entity: node
+    d58c4e84-d881-4548-83b0-3706aecbef88:
+      id: 'entity_field:node:field_textes'
+      label: Textes
+      provider: ctools_block
+      label_display: '0'
+      formatter:
+        label: hidden
+        type: entity_reference_revisions_entity_view
+        settings:
+          view_mode: default
+        third_party_settings: {  }
+        weight: 0
+      region: second
+      weight: -3
+      uuid: d58c4e84-d881-4548-83b0-3706aecbef88
+      context_mapping:
+        entity: node
+    0d7b12da-76c6-471b-ab53-0e57b520915e:
+      id: 'entity_field:node:field_themes_lies'
+      label: 'Thèmes liés'
+      provider: ctools_block
+      label_display: visible
+      formatter:
+        label: hidden
+        type: entity_reference_label
+        settings:
+          link: true
+        third_party_settings: {  }
+        weight: 0
+      region: third
+      weight: -3
+      uuid: 0d7b12da-76c6-471b-ab53-0e57b520915e
+      context_mapping:
+        entity: node
+    80ceb299-5738-410f-8448-79f438df51e7:
+      id: 'entity_field:node:field_equipes'
+      label: Équipes
+      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: -5
+      uuid: 80ceb299-5738-410f-8448-79f438df51e7
+      context_mapping:
+        entity: node
+    9879675e-0278-482d-9ae0-bdffb5241640:
+      id: 'views_block:programme_toc-block_4'
+      label: ''
+      provider: views
+      label_display: '0'
+      views_label: ''
+      items_per_page: none
+      region: first
+      weight: -5
+      uuid: 9879675e-0278-482d-9ae0-bdffb5241640
+      context_mapping: {  }
+  id: panels_variant
+  uuid: 905f0d96-a78c-40f1-bb80-f259e145444f
+  label: null
+  weight: 0
+  layout: layout_threecol_25_50_25
+  layout_settings:
+    label: 'Node Projet'
+  page_title: ''
+  storage_type: page_manager
+  storage_id: node-panels_variant-4
+  builder: standard
+page: node
+weight: 0
+selection_criteria:
+  -
+    id: 'entity_bundle:node'
+    bundles:
+      projet: projet
+    negate: false
+    context_mapping:
+      node: node
+selection_logic: and
+static_context:
+  programme:
+    label: programme
+    type: 'entity_revision:node'
+    description: ''
+    value: 'node:field_programme'