Browse Source

ressources dans pages projet/ville

bach 2 years ago
parent
commit
0f800be899

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

@@ -0,0 +1,94 @@
+uuid: a11d691a-ecdf-4ac7-82ac-a0eefe4f4304
+langcode: fr
+status: true
+dependencies:
+  config:
+    - core.entity_view_mode.node.third
+    - field.field.node.ressource.body
+    - 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_edition
+    - field.field.node.ressource.field_evenements_lies
+    - field.field.node.ressource.field_fichier
+    - field.field.node.ressource.field_image
+    - field.field.node.ressource.field_lien
+    - field.field.node.ressource.field_memo
+    - field.field.node.ressource.field_poid
+    - field.field.node.ressource.field_programme
+    - field.field.node.ressource.field_projet
+    - field.field.node.ressource.field_ressources_liees
+    - field.field.node.ressource.field_sous_titre
+    - field.field.node.ressource.field_theme
+    - field.field.node.ressource.field_type_de_ressource
+    - field.field.node.ressource.field_videos
+    - image.style.large
+    - node.type.ressource
+  module:
+    - image
+    - panelizer
+    - text
+    - user
+third_party_settings:
+  panelizer:
+    enable: false
+    custom: false
+    allow: false
+    default: default
+id: node.ressource.third
+targetEntityType: node
+bundle: ressource
+mode: third
+content:
+  field_auteurs:
+    type: text_default
+    label: hidden
+    settings: {  }
+    third_party_settings: {  }
+    weight: 2
+    region: content
+  field_image:
+    type: image
+    label: hidden
+    settings:
+      image_link: ''
+      image_style: large
+      image_loading:
+        attribute: lazy
+    third_party_settings: {  }
+    weight: 0
+    region: content
+  field_sous_titre:
+    type: string
+    label: hidden
+    settings:
+      link_to_entity: false
+    third_party_settings: {  }
+    weight: 3
+    region: content
+  field_type_de_ressource:
+    type: entity_reference_label
+    label: hidden
+    settings:
+      link: false
+    third_party_settings: {  }
+    weight: 1
+    region: content
+hidden:
+  body: true
+  field_collections: true
+  field_date_de_parution: true
+  field_edition: true
+  field_evenements_lies: true
+  field_fichier: true
+  field_lien: true
+  field_memo: true
+  field_poid: true
+  field_programme: true
+  field_projet: true
+  field_ressources_liees: true
+  field_theme: true
+  field_videos: true
+  langcode: true
+  links: true
+  search_api_excerpt: true

+ 10 - 0
config/sync/core.entity_view_mode.node.third.yml

@@ -0,0 +1,10 @@
+uuid: 7d50b4c9-5d5d-4ff4-b950-a1ecb20e32bb
+langcode: fr
+status: true
+dependencies:
+  module:
+    - node
+id: node.third
+label: 'third column'
+targetEntityType: node
+cache: true

+ 5 - 1
config/sync/page_manager.page.node.yml

@@ -9,4 +9,8 @@ use_admin_theme: false
 path: '/node/{node}'
 access_logic: and
 access_conditions: {  }
-parameters: {  }
+parameters:
+  node:
+    machine_name: node
+    label: node
+    type: 'entity:node'

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

@@ -5,6 +5,7 @@ dependencies:
   config:
     - page_manager.page.node
     - views.view.programme_toc
+    - views.view.ressources
   module:
     - ctools_block
     - node
@@ -54,23 +55,6 @@ variant_settings:
       region: third
       weight: -6
       uuid: fa5671b0-2af1-45de-8eae-3aa8bcc1be7d
-    8366d015-1ffd-4252-b8d3-fbeef9c0cd8d:
-      id: 'entity_field:node:field_ressources_liees'
-      label: 'Ressources liées'
-      label_display: visible
-      provider: ctools_block
-      context_mapping:
-        entity: node
-      formatter:
-        type: entity_reference_label
-        weight: 0
-        label: hidden
-        settings:
-          link: true
-        third_party_settings: {  }
-      region: third
-      weight: -7
-      uuid: 8366d015-1ffd-4252-b8d3-fbeef9c0cd8d
     78dec81a-9c13-4c3e-8c3d-e1e9950da62a:
       id: 'entity_field:node:title'
       label: Titre
@@ -274,6 +258,21 @@ variant_settings:
       weight: -4
       uuid: 9d776e95-a9c0-4293-a62b-1689df4570cb
       link_title: Ressources
+    63b90de4-b75f-46a5-b8a0-a0fe654966cb:
+      id: 'views_block:ressources-block_1'
+      label: 'Ressources liées'
+      label_display: visible
+      provider: views
+      context_mapping: {  }
+      views_label: 'Ressources liées'
+      items_per_page: none
+      arguments:
+        nid:
+          type: node_nid
+          value: '[node:nid]'
+      region: third
+      weight: -7
+      uuid: 63b90de4-b75f-46a5-b8a0-a0fe654966cb
   page_title: ''
   layout: layout_threecol_25_50_25
   layout_settings:

+ 589 - 0
config/sync/views.view.ressources.yml

@@ -0,0 +1,589 @@
+uuid: 81cedcb1-e598-4216-85c9-aaabdec152da
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_auteurs
+    - field.storage.node.field_image
+    - field.storage.node.field_sous_titre
+    - field.storage.node.field_ville
+    - image.style.large
+  module:
+    - image
+    - node
+    - text
+    - user
+id: ressources
+label: Ressources
+module: views
+description: ''
+tag: ''
+base_table: node_field_data
+base_field: nid
+display:
+  default:
+    id: default
+    display_title: Default
+    display_plugin: default
+    position: 0
+    display_options:
+      title: 'Ressources third column'
+      fields:
+        nid:
+          id: nid
+          table: node_field_data
+          field: nid
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: node
+          entity_field: nid
+          plugin_id: field
+          label: ''
+          exclude: true
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: false
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: number_integer
+          settings:
+            thousand_separator: ''
+            prefix_suffix: true
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+        field_image:
+          id: field_image
+          table: node__field_image
+          field: field_image
+          relationship: field_ressources_liees
+          group_type: group
+          admin_label: ''
+          plugin_id: field
+          label: ''
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: false
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: target_id
+          type: image
+          settings:
+            image_link: ''
+            image_style: large
+            image_loading:
+              attribute: lazy
+          group_column: ''
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+        field_auteurs:
+          id: field_auteurs
+          table: node__field_auteurs
+          field: field_auteurs
+          relationship: field_ressources_liees
+          group_type: group
+          admin_label: ''
+          plugin_id: field
+          label: ''
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: false
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: text_default
+          settings: {  }
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+        title:
+          id: title
+          table: node_field_data
+          field: title
+          relationship: field_ressources_liees
+          group_type: group
+          admin_label: ''
+          entity_type: node
+          entity_field: title
+          plugin_id: field
+          label: ''
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: false
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: string
+          settings:
+            link_to_entity: true
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+        field_sous_titre:
+          id: field_sous_titre
+          table: node__field_sous_titre
+          field: field_sous_titre
+          relationship: field_ressources_liees
+          group_type: group
+          admin_label: ''
+          plugin_id: field
+          label: ''
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: false
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: string
+          settings:
+            link_to_entity: false
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+        field_ville:
+          id: field_ville
+          table: node__field_ville
+          field: field_ville
+          relationship: none
+          group_type: group
+          admin_label: ''
+          plugin_id: field
+          label: ''
+          exclude: true
+          alter:
+            alter_text: true
+            text: 'voir toutes les ressources'
+            make_link: true
+            path: '/centre-de-ressources?ville={{ field_ville__target_id }}'
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: false
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: false
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: target_id
+          type: entity_reference_entity_id
+          settings: {  }
+          group_column: target_id
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+      pager:
+        type: some
+        options:
+          offset: 0
+          items_per_page: 3
+      exposed_form:
+        type: basic
+        options:
+          submit_button: Apply
+          reset_button: false
+          reset_button_label: Reset
+          exposed_sorts_label: 'Sort by'
+          expose_sort_order: true
+          sort_asc_label: Asc
+          sort_desc_label: Desc
+      access:
+        type: perm
+        options:
+          perm: 'access content'
+      cache:
+        type: tag
+        options: {  }
+      empty: {  }
+      sorts:
+        created:
+          id: created
+          table: node_field_data
+          field: created
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: node
+          entity_field: created
+          plugin_id: date
+          order: DESC
+          expose:
+            label: ''
+            field_identifier: ''
+          exposed: false
+          granularity: second
+      arguments:
+        nid:
+          id: nid
+          table: node_field_data
+          field: nid
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: node
+          entity_field: nid
+          plugin_id: node_nid
+          default_action: default
+          exception:
+            value: all
+            title_enable: false
+            title: All
+          title_enable: false
+          title: ''
+          default_argument_type: query_parameter
+          default_argument_options:
+            query_param: ''
+            fallback: ''
+            multiple: or
+          default_argument_skip_url: false
+          summary_options:
+            base_path: ''
+            count: true
+            override: false
+            items_per_page: 25
+          summary:
+            sort_order: asc
+            number_of_records: 0
+            format: default_summary
+          specify_validation: false
+          validate:
+            type: none
+            fail: 'not found'
+          validate_options: {  }
+          break_phrase: false
+          not: false
+      filters:
+        status:
+          id: status
+          table: node_field_data
+          field: status
+          entity_type: node
+          entity_field: status
+          plugin_id: boolean
+          value: '1'
+          group: 1
+          expose:
+            operator: ''
+            operator_limit_selection: false
+            operator_list: {  }
+      style:
+        type: default
+      row:
+        type: fields
+      query:
+        type: views_query
+        options:
+          query_comment: ''
+          disable_sql_rewrite: false
+          distinct: false
+          replica: false
+          query_tags: {  }
+      relationships:
+        field_ressources_liees:
+          id: field_ressources_liees
+          table: node__field_ressources_liees
+          field: field_ressources_liees
+          relationship: none
+          group_type: group
+          admin_label: 'field_ressources_liees : Contenu'
+          plugin_id: standard
+          required: true
+      header: {  }
+      footer:
+        area_text_custom:
+          id: area_text_custom
+          table: views
+          field: area_text_custom
+          relationship: none
+          group_type: group
+          admin_label: ''
+          plugin_id: text_custom
+          empty: false
+          content: '{{ field_ville }}'
+          tokenize: true
+      display_extenders: {  }
+    cache_metadata:
+      max-age: -1
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - 'user.node_grants:view'
+        - user.permissions
+      tags:
+        - 'config:field.storage.node.field_auteurs'
+        - 'config:field.storage.node.field_image'
+        - 'config:field.storage.node.field_sous_titre'
+        - 'config:field.storage.node.field_ville'
+  block_1:
+    id: block_1
+    display_title: Block
+    display_plugin: block
+    position: 1
+    display_options:
+      display_extenders:
+        views_ef_fieldset: {  }
+      block_description: 'ressources third column'
+      allow:
+        items_per_page: false
+        offset: '0'
+        pager: '0'
+        hide_fields: '0'
+        sort_fields: '0'
+        arguments: arguments
+        disable_filters: '0'
+        configure_sorts: '0'
+    cache_metadata:
+      max-age: -1
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - 'user.node_grants:view'
+        - user.permissions
+      tags:
+        - 'config:field.storage.node.field_auteurs'
+        - 'config:field.storage.node.field_image'
+        - 'config:field.storage.node.field_sous_titre'
+        - 'config:field.storage.node.field_ville'

+ 1 - 1
web/profiles/d8-starterkit-profile

@@ -1 +1 @@
-Subproject commit 5069345d9dffca8ff935d7a01d2bc97a1272f063
+Subproject commit 179aa994156fa9c986cf9eb9262872abb9c651a2