Kaynağa Gözat

filtres ressources OK

bach 1 hafta önce
ebeveyn
işleme
ed1c7043bb

+ 1 - 0
composer.json

@@ -48,6 +48,7 @@
         "drupal/social_media_links": "^2.9",
         "drupal/typed_data": "^2",
         "drupal/views_argument_token": "^2.0",
+        "drupal/views_core_entity_reference": "^1.0@alpha",
         "drupal/webform": "^6.2",
         "drush/drush": "^12",
         "wikimedia/composer-merge-plugin": "^2.1"

+ 47 - 2
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "4a0ad074a89ca7d952a68b28aed741b7",
+    "content-hash": "c80a240579f4b572090915d652f6b678",
     "packages": [
         {
             "name": "asm89/stack-cors",
@@ -8164,6 +8164,50 @@
                 "docs": "https://www.drupal.org/docs/8/modules/views-bulk-operations-vbo"
             }
         },
+        {
+            "name": "drupal/views_core_entity_reference",
+            "version": "1.0.0-alpha3",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/views_core_entity_reference.git",
+                "reference": "1.0.0-alpha3"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/views_core_entity_reference-1.0.0-alpha3.zip",
+                "reference": "1.0.0-alpha3",
+                "shasum": "d31cc22d7d12c2cf1a3edf3d46e4c0c8642b5518"
+            },
+            "require": {
+                "drupal/core": "^10.2 || ^11"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "1.0.0-alpha3",
+                    "datestamp": "1736951307",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Alpha releases are not covered by Drupal security advisories."
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "scott_euser",
+                    "homepage": "https://www.drupal.org/user/3267594"
+                }
+            ],
+            "description": "Opts-in to using the Entity Reference filter provided by Drupal Core.",
+            "homepage": "https://www.drupal.org/project/views_core_entity_reference",
+            "support": {
+                "source": "https://git.drupalcode.org/project/views_core_entity_reference"
+            }
+        },
         {
             "name": "drupal/webform",
             "version": "6.2.0",
@@ -13520,7 +13564,8 @@
         "drupal/smtp": 10,
         "drupal/synonyms": 10,
         "drupal/translation_views": 15,
-        "drupal/ultimate_cron": 15
+        "drupal/ultimate_cron": 15,
+        "drupal/views_core_entity_reference": 15
     },
     "prefer-stable": true,
     "prefer-lowest": false,

+ 1 - 0
config/sync/core.extension.yml

@@ -128,6 +128,7 @@ module:
   views_argument_token: 0
   views_bulk_edit: 0
   views_bulk_operations: 0
+  views_core_entity_reference: 0
   views_ui: 0
   webform: 0
   extlink: 1

+ 595 - 16
config/sync/views.view.ressources.yml

@@ -4,13 +4,49 @@ status: true
 dependencies:
   config:
     - core.entity_view_mode.node.teaser
+    - field.storage.node.body
+    - field.storage.node.field_adresse_site
+    - field.storage.node.field_date_de_construction
+    - field.storage.node.field_operation
+    - field.storage.node.field_site
+    - field.storage.node.field_sous_titre
+    - field.storage.node.field_themes
     - node.type.ressource
     - system.menu.main
     - taxonomy.vocabulary.theme_ressource
     - taxonomy.vocabulary.type_de_ressource
+  content:
+    - 'node:site:00f81935-1db0-4202-a148-fbe240d9d2a2'
+    - 'node:site:10f6171d-0fb3-4f10-a9bb-b0f7c9a59828'
+    - 'node:site:1271a8ea-b3df-4e6f-bd68-20819dfa62b5'
+    - 'node:site:20138db6-3b0c-4ec9-8c9a-eb5b3405f516'
+    - 'node:site:270589af-e06a-4695-980c-6c034309318b'
+    - 'node:site:32282379-b190-4cb5-aa2f-51cde88c08e8'
+    - 'node:site:38a664c3-a743-444d-9d2e-d4c912737170'
+    - 'node:site:449ae645-87d8-4709-93a6-384c4ce819c0'
+    - 'node:site:50433fa4-205f-488d-b054-47f1bbc33909'
+    - 'node:site:50fd69f9-0d94-42d1-9fa6-b662fdd79f96'
+    - 'node:site:514c69a9-380a-4745-aac5-d7f6f5c4df29'
+    - 'node:site:7a680120-b62d-43bd-ab9e-3434ecf2995e'
+    - 'node:site:880dc00c-521f-4412-8bea-4e8ba69ae9c2'
+    - 'node:site:af6e3c49-6c1f-4bbd-b6bb-545ef2229095'
+    - 'node:site:b6e2d42a-8ba1-47bb-a82c-81634b81983c'
+    - 'node:site:b7257ab2-b453-478b-926e-0c837466e52b'
+    - 'node:site:b73f2bde-08f6-4aad-ad03-b6d70150425f'
+    - 'node:site:c65344c7-711b-49b9-b518-2c1b828c2ab1'
+    - 'node:site:c803dcb0-701e-428a-972d-6944aca75962'
+    - 'node:site:e2790394-34be-4b09-bd7a-0c468ed4bf59'
+    - 'node:site:e8f9cc39-e7a2-4e7e-9888-7b82d8b77eae'
+    - 'node:site:ecf3735e-8b02-4ba9-86ec-863301300488'
+    - 'node:site:f6ecf94b-1646-42ab-b137-5bbad12ec11b'
+    - 'node:site:f8b729ae-1ace-4523-9c1b-60897af7787a'
+    - 'node:site:fe7ea281-4a02-4e51-ac20-522afa3a123e'
   module:
+    - address
+    - datetime_range
     - node
     - taxonomy
+    - text
     - user
 id: ressources
 label: Ressources
@@ -75,6 +111,448 @@ display:
           multi_type: separator
           separator: ', '
           field_api_classes: false
+        field_adresse_site:
+          id: field_adresse_site
+          table: node__field_adresse_site
+          field: field_adresse_site
+          relationship: none
+          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: langcode
+          type: address_default
+          settings: {  }
+          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
+        body:
+          id: body
+          table: node__body
+          field: body
+          relationship: none
+          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
+        field_date_de_construction:
+          id: field_date_de_construction
+          table: node__field_date_de_construction
+          field: field_date_de_construction
+          relationship: none
+          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: daterange_default
+          settings:
+            timezone_override: ''
+            format_type: medium
+            from_to: both
+            separator: '-'
+          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_operation:
+          id: field_operation
+          table: node__field_operation
+          field: field_operation
+          relationship: none
+          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: entity_reference_label
+          settings:
+            link: true
+          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
+        field_sous_titre:
+          id: field_sous_titre
+          table: node__field_sous_titre
+          field: field_sous_titre
+          relationship: none
+          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_themes:
+          id: field_themes
+          table: node__field_themes
+          field: field_themes
+          relationship: none
+          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: entity_reference_label
+          settings:
+            link: true
+          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
+        field_site:
+          id: field_site
+          table: node__field_site
+          field: field_site
+          relationship: none
+          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: entity_reference_label
+          settings:
+            link: true
+          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: mini
         options:
@@ -152,29 +630,27 @@ display:
           value:
             ressource: ressource
           group: 1
-        title:
-          id: title
-          table: node_field_data
-          field: title
+        combine:
+          id: combine
+          table: views
+          field: combine
           relationship: none
           group_type: group
           admin_label: ''
-          entity_type: node
-          entity_field: title
-          plugin_id: string
+          plugin_id: combine
           operator: contains
           value: ''
           group: 1
           exposed: true
           expose:
-            operator_id: title_op
-            label: Titre
+            operator_id: combine_op
+            label: Recherche
             description: ''
             use_operator: false
-            operator: title_op
+            operator: combine_op
             operator_limit_selection: false
             operator_list: {  }
-            identifier: title
+            identifier: combine
             required: false
             remember: false
             multiple: false
@@ -198,6 +674,93 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
+          fields:
+            title: title
+            field_adresse_site: field_adresse_site
+            body: body
+            field_date_de_construction: field_date_de_construction
+            field_operation: field_operation
+            field_sous_titre: field_sous_titre
+        field_site_target_id:
+          id: field_site_target_id
+          table: node__field_site
+          field: field_site_target_id
+          relationship: none
+          group_type: group
+          admin_label: ''
+          plugin_id: entity_reference
+          operator: or
+          value:
+            67: '67'
+            76: '76'
+            60: '60'
+            77: '77'
+            65: '65'
+            59: '59'
+            71: '71'
+            66: '66'
+            72: '72'
+            80: '80'
+            78: '78'
+            68: '68'
+            69: '69'
+            58: '58'
+            81: '81'
+            79: '79'
+            82: '82'
+            61: '61'
+            62: '62'
+            73: '73'
+            74: '74'
+            63: '63'
+            64: '64'
+            70: '70'
+            75: '75'
+          group: 1
+          exposed: true
+          expose:
+            operator_id: field_site_target_id_op
+            label: Site
+            description: ''
+            use_operator: false
+            operator: field_site_target_id_op
+            operator_limit_selection: false
+            operator_list: {  }
+            identifier: field_site_target_id
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              anonymous: '0'
+              admin: '0'
+              root: '0'
+              editor: '0'
+              collaborateur: '0'
+            reduce: false
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+          reduce_duplicates: false
+          sub_handler: 'default:node'
+          widget: select
+          sub_handler_settings:
+            target_bundles:
+              site: site
+            sort:
+              field: title
+              direction: ASC
+            auto_create: false
+            auto_create_bundle: ''
         field_themes_target_id:
           id: field_themes_target_id
           table: node__field_themes
@@ -269,7 +832,7 @@ display:
           exposed: true
           expose:
             operator_id: field_type_de_ressource_target_id_op
-            label: 'Type de ressource (field_type_de_ressource)'
+            label: 'Type de ressource'
             description: ''
             use_operator: false
             operator: field_type_de_ressource_target_id_op
@@ -318,6 +881,10 @@ display:
           1: AND
       style:
         type: default
+        options:
+          row_class: ''
+          default_row_class: true
+          uses_fields: true
       row:
         type: 'entity:node'
         options:
@@ -341,10 +908,16 @@ display:
         - 'languages:language_interface'
         - url
         - url.query_args
-        - user
         - 'user.node_grants:view'
         - user.permissions
-      tags: {  }
+      tags:
+        - 'config:field.storage.node.body'
+        - 'config:field.storage.node.field_adresse_site'
+        - 'config:field.storage.node.field_date_de_construction'
+        - 'config:field.storage.node.field_operation'
+        - 'config:field.storage.node.field_site'
+        - 'config:field.storage.node.field_sous_titre'
+        - 'config:field.storage.node.field_themes'
   page_1:
     id: page_1
     display_title: Page
@@ -380,7 +953,13 @@ display:
         - 'languages:language_interface'
         - url
         - url.query_args
-        - user
         - 'user.node_grants:view'
         - user.permissions
-      tags: {  }
+      tags:
+        - 'config:field.storage.node.body'
+        - 'config:field.storage.node.field_adresse_site'
+        - 'config:field.storage.node.field_date_de_construction'
+        - 'config:field.storage.node.field_operation'
+        - 'config:field.storage.node.field_site'
+        - 'config:field.storage.node.field_sous_titre'
+        - 'config:field.storage.node.field_themes'