From 4a88b8a1c47f8f4b7cf4dce4deca38b9e31b03c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=9Awi=C4=85tkowski?= Date: Mon, 16 Sep 2024 12:19:54 +0200 Subject: [PATCH] DROOP-1112: view filter field change --- .../config/install/search_api.index.product_index.yml | 11 ++++++++++- .../config/install/views.view.products_list.yml | 11 ++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/modules/custom/d_product/config/install/search_api.index.product_index.yml b/modules/custom/d_product/config/install/search_api.index.product_index.yml index a43d8d275..3d1d289b1 100644 --- a/modules/custom/d_product/config/install/search_api.index.product_index.yml +++ b/modules/custom/d_product/config/install/search_api.index.product_index.yml @@ -8,8 +8,8 @@ dependencies: - search_api.server.db_server - core.entity_view_mode.node.full module: - - taxonomy - node + - taxonomy - search_api id: product_index name: 'Product Index' @@ -65,6 +65,14 @@ field_settings: - field.storage.node.field_tags module: - taxonomy + nid: + label: ID + datasource_id: 'entity:node' + property_path: nid + type: integer + dependencies: + module: + - node node_grants: label: 'Node access information' property_path: search_api_node_grants @@ -135,6 +143,7 @@ processor_settings: content_access: weights: preprocess_query: -30 + custom_value: { } entity_status: { } entity_type: { } html_filter: diff --git a/modules/custom/d_product/config/install/views.view.products_list.yml b/modules/custom/d_product/config/install/views.view.products_list.yml index d275f0701..39816e4fc 100644 --- a/modules/custom/d_product/config/install/views.view.products_list.yml +++ b/modules/custom/d_product/config/install/views.view.products_list.yml @@ -83,6 +83,7 @@ display: type: full options: offset: 0 + pagination_heading_level: h4 items_per_page: 12 total_pages: 0 id: 0 @@ -149,14 +150,14 @@ display: options: perm: 'access content' cache: - type: none + type: search_api_none options: { } empty: { } sorts: - search_api_id: - id: search_api_id + nid: + id: nid table: search_api_index_product_index - field: search_api_id + field: nid relationship: none group_type: group admin_label: '' @@ -240,7 +241,7 @@ display: position: 1 display_options: cache: - type: none + type: search_api_none defaults: cache: false display_description: 'Products list with teasers'