diff --git a/README.md b/README.md index 99144d127..d80126d02 100644 --- a/README.md +++ b/README.md @@ -96,13 +96,17 @@ selection of what to show is determined by the `field_listing_type`, and the par #### News archive (news_archive) The _news_archive_ paragraph provides the news archive search that can be added to landing pages. The news archive is -a React search that uses views listing (`news_archive_index`) as a fallback when JavaScript is not enabled. All React +a React search that uses views listing (`news_archive`) as a fallback when JavaScript is not enabled. All React searches are in the `hdbt` theme, so most of the related logic is also found there. The _news_archive_ paragraph has an editable title and description. - React search code can be found under the `hdbt` theme [here](https://github.com/City-of-Helsinki/drupal-hdbt/tree/main/src/js/react/apps/news-archive). - Additional configuration for the React app is under the `hdbt_subtheme` theme function `hdbt_subtheme_preprocess_paragraph` [here](https://github.com/City-of-Helsinki/drupal-helfi-etusivu/blob/dev/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme) -- Fallback view when JavaScript is not enabled can be found in the `/conf/cim` folder [here](https://github.com/City-of-Helsinki/drupal-helfi-etusivu/blob/dev/conf/cmi/views.view.news_archive_index.yml). +- Fallback view when JavaScript is not enabled can be found in the `/conf/cim` folder [here](https://github.com/City-of-Helsinki/drupal-helfi-etusivu/blob/dev/conf/cmi/views.view.news_archive.yml). +- **NOTICE:** The fallback view and RSS view retrieve data from the regular database, while the React application queries +the Elasticsearch index. This is because switching the view to use the Elasticsearch index as the data source limits +its ability to filter using URL queries, compared to the regular view. For example, queries in the format +`?tags%5b%5d=375` would no longer work out of the box, and the contextual filters would need to be added separately. ### Custom roles diff --git a/conf/cmi/language/fi/views.view.news_archive_index.yml b/conf/cmi/language/fi/views.view.news_archive.yml similarity index 92% rename from conf/cmi/language/fi/views.view.news_archive_index.yml rename to conf/cmi/language/fi/views.view.news_archive.yml index 49c8f707b..1307f3213 100644 --- a/conf/cmi/language/fi/views.view.news_archive_index.yml +++ b/conf/cmi/language/fi/views.view.news_archive.yml @@ -20,8 +20,8 @@ display: exposed_sorts_label: Järjestä sort_asc_label: Nouseva sort_desc_label: Laskeva - news_archive_feed_index: + news_archive_block: + display_title: Uutisarkisto + news_archive_feed: display_options: title: Uutiset - news_archive_index_block: - display_title: Uutisarkisto diff --git a/conf/cmi/language/sv/views.view.news_archive_index.yml b/conf/cmi/language/sv/views.view.news_archive.yml similarity index 85% rename from conf/cmi/language/sv/views.view.news_archive_index.yml rename to conf/cmi/language/sv/views.view.news_archive.yml index 9a6319b06..01d0eac75 100644 --- a/conf/cmi/language/sv/views.view.news_archive_index.yml +++ b/conf/cmi/language/sv/views.view.news_archive.yml @@ -10,8 +10,8 @@ display: first: Första last: Sista title: 'Alla nyheter' - news_archive_index_block: + news_archive_block: display_title: Nyhetsarkiv - news_archive_feed_index: + news_archive_feed: display_options: title: Nyheter diff --git a/conf/cmi/views.view.news_archive_index.yml b/conf/cmi/views.view.news_archive.yml similarity index 54% rename from conf/cmi/views.view.news_archive_index.yml rename to conf/cmi/views.view.news_archive.yml index f8c91db90..3e48f64de 100644 --- a/conf/cmi/views.view.news_archive_index.yml +++ b/conf/cmi/views.view.news_archive.yml @@ -1,23 +1,28 @@ -uuid: 9498ef19-6bd8-407c-a996-992f67738d63 +uuid: 82f7949d-e966-4e8d-9fa0-19e5f82659b6 langcode: en status: true dependencies: config: + - core.entity_view_mode.node.teaser - field.storage.node.field_lead_in - field.storage.node.field_main_image - - search_api.index.news + - node.type.news_item + - taxonomy.vocabulary.news_group + - taxonomy.vocabulary.news_neighbourhoods + - taxonomy.vocabulary.news_tags module: - helfi_etusivu - - search_api + - node + - taxonomy - user - views_rss -id: news_archive_index +id: news_archive label: 'News archive' module: views description: '' tag: '' -base_table: search_api_index_news -base_field: search_api_id +base_table: node_field_data +base_field: nid display: default: id: default @@ -27,48 +32,32 @@ display: display_options: title: 'All news' fields: - search_api_rendered_item: - id: search_api_rendered_item - table: search_api_index_news - field: search_api_rendered_item + title: + id: title + table: node_field_data + field: title relationship: none group_type: group admin_label: '' - plugin_id: search_api_rendered_item + 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: '' + word_boundary: false + ellipsis: false strip_tags: false trim: false - preserve_tags: '' html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: false + element_label_colon: true element_wrapper_type: '' element_wrapper_class: '' element_default_classes: true @@ -76,16 +65,47 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - view_modes: - 'entity:node': - news_article: teaser - news_item: teaser - 'entity:taxonomy_term': - annif_keywords: '' - linked_events_keywords: '' - news_group: '' - news_neighbourhoods: '' - news_tags: '' + 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_lead_in: + id: field_lead_in + table: node__field_lead_in + field: field_lead_in + plugin_id: field + view_node: + id: view_node + table: node + field: view_node + entity_type: node + plugin_id: entity_link + output_url_as_text: false + absolute: false + title_1: + id: title_1 + table: node_field_data + field: title + entity_type: node + entity_field: title + plugin_id: field + name: + id: name + table: users_field_data + field: name + entity_type: user + entity_field: name + plugin_id: field pager: type: full options: @@ -111,9 +131,9 @@ display: exposed_form: type: basic options: - submit_button: Apply - reset_button: false - reset_button_label: Reset + submit_button: Filter + reset_button: true + reset_button_label: 'Clear selections' exposed_sorts_label: 'Sort by' expose_sort_order: true sort_asc_label: Asc @@ -122,33 +142,47 @@ display: type: none options: { } cache: - type: search_api_none + type: tag options: { } empty: { } - sorts: - published_at: - id: published_at - table: search_api_index_news - field: published_at - relationship: none - group_type: group - admin_label: '' - plugin_id: search_api - order: DESC - expose: - label: '' - field_identifier: '' - exposed: false + sorts: { } arguments: { } filters: - search_api_language: - id: search_api_language - table: search_api_index_news - field: search_api_language + 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: { } + type: + id: type + table: node_field_data + field: type + entity_type: node + entity_field: type + plugin_id: bundle + value: + news_item: news_item + expose: + operator_limit_selection: false + operator_list: { } + langcode: + id: langcode + table: node_field_data + field: langcode relationship: none group_type: group admin_label: '' - plugin_id: search_api_language + entity_type: node + entity_field: langcode + plugin_id: language operator: in value: '***LANGUAGE_language_content***': '***LANGUAGE_language_content***' @@ -181,38 +215,38 @@ display: default_group: All default_group_multiple: { } group_items: { } - entity_type: - id: entity_type - table: search_api_index_news - field: entity_type + field_news_groups_target_id: + id: field_news_groups_target_id + table: node__field_news_groups + field: field_news_groups_target_id relationship: none group_type: group admin_label: '' - plugin_id: search_api_string - operator: '=' - value: - min: '' - max: '' - value: node + plugin_id: taxonomy_index_tid + operator: or + value: { } group: 1 - exposed: false + exposed: true expose: - operator_id: '' - label: '' + operator_id: field_news_groups_target_id_op + label: 'Target groups' description: '' use_operator: false - operator: '' + operator: field_news_groups_target_id_op operator_limit_selection: false operator_list: { } - identifier: '' + identifier: groups required: false remember: false - multiple: false + multiple: true remember_roles: authenticated: authenticated - min_placeholder: '' - max_placeholder: '' - placeholder: '' + anonymous: '0' + read_only: '0' + content_producer: '0' + editor: '0' + admin: '0' + reduce: false is_grouped: false group_info: label: '' @@ -225,33 +259,36 @@ display: default_group: All default_group_multiple: { } group_items: { } - field_news_groups: - id: field_news_groups - table: search_api_index_news - field: field_news_groups + reduce_duplicates: false + vid: news_group + type: select + hierarchy: false + limit: true + error_message: true + field_news_item_tags_target_id: + id: field_news_item_tags_target_id + table: node__field_news_item_tags + field: field_news_item_tags_target_id relationship: none group_type: group admin_label: '' - plugin_id: search_api_string - operator: '=' - value: - min: '' - max: '' - value: '' + plugin_id: taxonomy_index_tid + operator: or + value: { } group: 1 exposed: true expose: - operator_id: field_news_groups_op - label: 'News groups ' + operator_id: field_news_item_tags_target_id_op + label: Topics description: '' use_operator: false - operator: field_news_groups_op + operator: field_news_item_tags_target_id_op operator_limit_selection: false operator_list: { } - identifier: groups + identifier: tags required: false remember: false - multiple: false + multiple: true remember_roles: authenticated: authenticated anonymous: '0' @@ -259,12 +296,7 @@ display: content_producer: '0' editor: '0' admin: '0' - menu_api: '0' - news_producer: '0' - super_administrator: '0' - min_placeholder: '' - max_placeholder: '' - placeholder: '' + reduce: false is_grouped: false group_info: label: '' @@ -277,33 +309,36 @@ display: default_group: All default_group_multiple: { } group_items: { } - field_news_item_tags: - id: field_news_item_tags - table: search_api_index_news - field: field_news_item_tags + reduce_duplicates: false + vid: news_tags + type: select + hierarchy: false + limit: true + error_message: true + field_news_neighbourhoods_target_id: + id: field_news_neighbourhoods_target_id + table: node__field_news_neighbourhoods + field: field_news_neighbourhoods_target_id relationship: none group_type: group admin_label: '' - plugin_id: search_api_string - operator: '=' - value: - min: '' - max: '' - value: '' + plugin_id: taxonomy_index_tid + operator: or + value: { } group: 1 exposed: true expose: - operator_id: field_news_item_tags_op - label: 'News tags' + operator_id: field_news_neighbourhoods_target_id_op + label: 'City districts' description: '' use_operator: false - operator: field_news_item_tags_op + operator: field_news_neighbourhoods_target_id_op operator_limit_selection: false operator_list: { } - identifier: topic + identifier: neighbourhoods required: false remember: false - multiple: false + multiple: true remember_roles: authenticated: authenticated anonymous: '0' @@ -311,12 +346,7 @@ display: content_producer: '0' editor: '0' admin: '0' - menu_api: '0' - news_producer: '0' - super_administrator: '0' - min_placeholder: '' - max_placeholder: '' - placeholder: '' + reduce: false is_grouped: false group_info: label: '' @@ -329,46 +359,123 @@ display: default_group: All default_group_multiple: { } group_items: { } - field_news_neighbourhoods: - id: field_news_neighbourhoods - table: search_api_index_news - field: field_news_neighbourhoods + reduce_duplicates: false + vid: news_neighbourhoods + type: select + hierarchy: false + limit: true + error_message: true + style: + type: default + row: + type: 'entity:node' + options: + view_mode: teaser + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + link_display: feed_1 + link_url: '' + header: { } + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + tags: + - 'config:field.storage.node.field_lead_in' + news_archive_block: + id: news_archive_block + display_title: 'News archive' + display_plugin: block + position: 1 + display_options: + sorts: + published_at: + id: published_at + table: node_field_data + field: published_at + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: published_at + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: '' + exposed: false + granularity: minute + arguments: { } + 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: { } + type: + id: type + table: node_field_data + field: type + entity_type: node + entity_field: type + plugin_id: bundle + value: + news_item: news_item + group: 1 + expose: + operator_limit_selection: false + operator_list: { } + langcode: + id: langcode + table: node_field_data + field: langcode relationship: none group_type: group admin_label: '' - plugin_id: search_api_string - operator: '=' + entity_type: node + entity_field: langcode + plugin_id: language + operator: in value: - min: '' - max: '' - value: '' + '***LANGUAGE_language_content***': '***LANGUAGE_language_content***' group: 1 - exposed: true + exposed: false expose: - operator_id: field_news_neighbourhoods_op - label: 'News neighbourhoods' + operator_id: '' + label: '' description: '' use_operator: false - operator: field_news_neighbourhoods_op + operator: '' operator_limit_selection: false operator_list: { } - identifier: neighbourhoods + identifier: '' required: false remember: false multiple: false remember_roles: authenticated: authenticated - anonymous: '0' - read_only: '0' - content_producer: '0' - editor: '0' - admin: '0' - menu_api: '0' - news_producer: '0' - super_administrator: '0' - min_placeholder: '' - max_placeholder: '' - placeholder: '' + reduce: false is_grouped: false group_info: label: '' @@ -385,33 +492,24 @@ display: operator: AND groups: 1: AND - style: - type: default - row: - type: fields - query: - type: search_api_query - options: - bypass_access: false - skip_access: false - preserve_facet_query_args: false - query_tags: { } - relationships: { } - header: { } - footer: { } + defaults: + sorts: false + arguments: false + filters: false + filter_groups: false + display_description: '' display_extenders: { } cache_metadata: max-age: -1 contexts: + - 'languages:language_content' - 'languages:language_interface' - - url - url.query_args - 'user.node_grants:view' tags: - - 'config:search_api.index.news' - - 'search_api_list:news' - news_archive_feed_index: - id: news_archive_feed_index + - 'config:field.storage.node.field_lead_in' + news_archive_feed: + id: news_archive_feed display_title: Feed display_plugin: feed position: 2 @@ -420,12 +518,14 @@ display: fields: title: id: title - table: search_api_index_news + table: node_field_data field: title relationship: none group_type: group admin_label: '' - plugin_id: search_api_field + entity_type: node + entity_field: title + plugin_id: field label: '' exclude: false alter: @@ -446,8 +546,8 @@ display: target: '' nl2br: false max_length: 0 - word_boundary: true - ellipsis: true + word_boundary: false + ellipsis: false more_link: false more_link_text: '' more_link_path: '' @@ -481,21 +581,14 @@ display: multi_type: separator separator: ', ' field_api_classes: false - field_rendering: true - fallback_handler: search_api - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' - url: - id: url - table: search_api_index_news - field: url + field_lead_in: + id: field_lead_in + table: node__field_lead_in + field: field_lead_in relationship: none group_type: group admin_label: '' - plugin_id: search_api + plugin_id: field label: '' exclude: false alter: @@ -532,24 +625,33 @@ display: element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: true + element_default_classes: false empty: '' hide_empty: false empty_zero: false hide_alter_empty: true - link_to_item: false - use_highlighting: false + click_sort_column: value + type: basic_string + 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 - multi_separator: ', ' - field_lead_in: - id: field_lead_in - table: search_api_datasource_news_entity_node - field: field_lead_in + separator: ', ' + field_api_classes: false + view_node: + id: view_node + table: node + field: view_node relationship: none group_type: group admin_label: '' entity_type: node - plugin_id: search_api_field + plugin_id: entity_link label: '' exclude: false alter: @@ -591,35 +693,19 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - click_sort_column: value - type: basic_string - 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_rendering: true - fallback_handler: search_api - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' + text: view + output_url_as_text: true + absolute: false name: id: name - table: search_api_entity_user + table: users_field_data field: name relationship: uid group_type: group admin_label: '' entity_type: user - plugin_id: search_api_field + entity_field: name + plugin_id: field label: '' exclude: false alter: @@ -662,7 +748,7 @@ display: empty_zero: false hide_alter_empty: true click_sort_column: value - type: string + type: user_name settings: link_to_entity: false group_column: value @@ -675,22 +761,16 @@ display: multi_type: separator separator: ', ' field_api_classes: false - field_rendering: true - fallback_handler: search_api - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' - field_main_image: - id: field_main_image - table: search_api_datasource_news_entity_node - field: field_main_image + created: + id: created + table: node_field_data + field: created relationship: none group_type: group admin_label: '' entity_type: node - plugin_id: search_api_field + entity_field: created + plugin_id: field label: '' exclude: false alter: @@ -732,10 +812,22 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - click_sort_column: target_id - type: rss_enclosure_formatter - settings: { } - group_column: target_id + click_sort_column: value + type: timestamp + settings: + date_format: custom + custom_date_format: r + timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + group_column: value group_columns: { } group_rows: true delta_limit: 0 @@ -745,38 +837,16 @@ display: multi_type: separator separator: ', ' field_api_classes: false - field_rendering: true - fallback_handler: search_api_entity - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' - display_methods: - file: - display_method: label - view_mode: default - hel_map: - display_method: label - view_mode: default - helfi_chart: - display_method: label - view_mode: default - image: - display_method: label - view_mode: default - remote_video: - display_method: label - view_mode: default - uuid: - id: uuid - table: search_api_datasource_news_entity_node - field: uuid + published_at: + id: published_at + table: node_field_data + field: published_at relationship: none group_type: group admin_label: '' entity_type: node - plugin_id: search_api_field + entity_field: published_at + plugin_id: field label: '' exclude: false alter: @@ -819,35 +889,102 @@ display: empty_zero: false hide_alter_empty: true click_sort_column: value - type: string + type: timestamp settings: - link_to_entity: false - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 + date_format: custom + custom_date_format: r + timezone: UTC + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + 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_rendering: true - fallback_handler: search_api - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' - published_at: - id: published_at - table: search_api_datasource_news_entity_node - field: published_at + field_main_image: + id: field_main_image + table: node__field_main_image + field: field_main_image + 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: rss_enclosure_formatter + 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 + uuid: + id: uuid + table: node + field: uuid relationship: none group_type: group admin_label: '' entity_type: node - plugin_id: search_api_field + entity_field: uuid + plugin_id: field label: '' exclude: false alter: @@ -890,21 +1027,9 @@ display: empty_zero: false hide_alter_empty: true click_sort_column: value - type: timestamp + type: string settings: - date_format: custom - custom_date_format: r - timezone: UTC - tooltip: - date_format: '' - custom_date_format: '' - time_diff: - enabled: false - future_format: '@interval hence' - past_format: '@interval ago' - granularity: 2 - refresh: 60 - description: '' + link_to_entity: false group_column: value group_columns: { } group_rows: true @@ -915,18 +1040,319 @@ display: multi_type: separator separator: ', ' field_api_classes: false - field_rendering: true - fallback_handler: search_api - fallback_options: - link_to_item: false - use_highlighting: false - multi_type: separator - multi_separator: ', ' pager: type: some options: offset: 0 items_per_page: 20 + sorts: + published_at: + id: published_at + table: node_field_data + field: published_at + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: published_at + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: '' + exposed: false + granularity: minute + 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: { } + type: + id: type + table: node_field_data + field: type + entity_type: node + entity_field: type + plugin_id: bundle + value: + news_item: news_item + group: 1 + expose: + operator_limit_selection: false + operator_list: { } + langcode: + id: langcode + table: node_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: langcode + plugin_id: language + operator: in + value: + '***LANGUAGE_language_content***': '***LANGUAGE_language_content***' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + 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: { } + field_news_groups_target_id: + id: field_news_groups_target_id + table: node__field_news_groups + field: field_news_groups_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: taxonomy_index_tid + operator: or + value: { } + group: 1 + exposed: true + expose: + operator_id: field_news_groups_target_id_op + label: 'News groups (field_news_groups)' + description: '' + use_operator: false + operator: field_news_groups_target_id_op + operator_limit_selection: false + operator_list: { } + identifier: groups + required: false + remember: false + multiple: true + remember_roles: + authenticated: authenticated + anonymous: '0' + read_only: '0' + content_producer: '0' + editor: '0' + admin: '0' + menu_api: '0' + news_producer: '0' + debug_api: '0' + reduce: false + is_grouped: false + group_info: + label: 'News groups (field_news_groups)' + description: null + identifier: field_news_groups_target_id + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: + 1: { } + 2: { } + 3: { } + reduce_duplicates: false + vid: news_group + type: select + hierarchy: false + limit: true + error_message: true + field_news_item_tags_target_id: + id: field_news_item_tags_target_id + table: node__field_news_item_tags + field: field_news_item_tags_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: taxonomy_index_tid + operator: or + value: { } + group: 1 + exposed: true + expose: + operator_id: field_news_item_tags_target_id_op + label: Topics + description: '' + use_operator: false + operator: field_news_item_tags_target_id_op + operator_limit_selection: false + operator_list: { } + identifier: topic + required: false + remember: false + multiple: true + remember_roles: + authenticated: authenticated + anonymous: '0' + read_only: '0' + content_producer: '0' + editor: '0' + admin: '0' + menu_api: '0' + news_producer: '0' + debug_api: '0' + reduce: false + is_grouped: false + group_info: + label: 'News tags (field_news_item_tags)' + description: null + identifier: field_news_item_tags_target_id + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: + 1: { } + 2: { } + 3: { } + reduce_duplicates: false + vid: news_tags + type: select + hierarchy: false + limit: true + error_message: true + field_news_neighbourhoods_target_id: + id: field_news_neighbourhoods_target_id + table: node__field_news_neighbourhoods + field: field_news_neighbourhoods_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: taxonomy_index_tid + operator: or + value: { } + group: 1 + exposed: true + expose: + operator_id: field_news_neighbourhoods_target_id_op + label: 'City districts' + description: '' + use_operator: false + operator: field_news_neighbourhoods_target_id_op + operator_limit_selection: false + operator_list: { } + identifier: neighbourhoods + required: false + remember: false + multiple: true + remember_roles: + authenticated: authenticated + anonymous: '0' + read_only: '0' + content_producer: '0' + editor: '0' + admin: '0' + menu_api: '0' + news_producer: '0' + debug_api: '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 + vid: news_neighbourhoods + type: select + hierarchy: false + limit: true + error_message: true + field_news_item_tags_target_id_2: + id: field_news_item_tags_target_id_2 + table: node__field_news_item_tags + field: field_news_item_tags_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: taxonomy_index_tid + operator: or + value: { } + group: 1 + exposed: true + expose: + operator_id: field_news_item_tags_target_id_2_op + label: 'News tags fallback (field_news_item_tags)' + description: '' + use_operator: false + operator: field_news_item_tags_target_id_2_op + operator_limit_selection: false + operator_list: { } + identifier: tags + required: false + remember: false + multiple: true + remember_roles: + authenticated: authenticated + anonymous: '0' + read_only: '0' + content_producer: '0' + editor: '0' + admin: '0' + menu_api: '0' + news_producer: '0' + debug_api: '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 + vid: news_tags + type: select + hierarchy: false + limit: true + error_message: true + filter_groups: + operator: AND + groups: + 1: AND style: type: rss options: @@ -939,7 +1365,7 @@ display: core: views_rss_core: title: title - link: url + link: view_node description: field_lead_in author: name category: '' @@ -950,28 +1376,43 @@ display: content: views_rss_core: encoded: '' + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: true + replica: false + query_tags: { } defaults: + access: true + query: false title: false + css_class: false relationships: false fields: false + sorts: false + filters: false + filter_groups: false sitename_title: false relationships: uid: id: uid - table: search_api_datasource_news_entity_node + table: node_field_data field: uid relationship: none group_type: group - admin_label: 'Authored by: User' + admin_label: author entity_type: node - plugin_id: search_api + entity_field: uid + plugin_id: standard required: false - skip_access: true + css_class: '' display_extenders: { } path: news/rss sitename_title: false displays: - news_archive_index_block: news_archive_index_block + news_archive_block: news_archive_block default: '0' cache_metadata: max-age: -1 @@ -983,23 +1424,3 @@ display: tags: - 'config:field.storage.node.field_lead_in' - 'config:field.storage.node.field_main_image' - - 'config:search_api.index.news' - - 'search_api_list:news' - news_archive_index_block: - id: news_archive_index_block - display_title: 'News archive' - display_plugin: block - position: 1 - display_options: - display_description: '' - display_extenders: { } - cache_metadata: - max-age: -1 - contexts: - - 'languages:language_interface' - - url - - url.query_args - - 'user.node_grants:view' - tags: - - 'config:search_api.index.news' - - 'search_api_list:news' diff --git a/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme b/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme index 09a8f3fb3..0f015e7a8 100644 --- a/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme +++ b/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme @@ -142,7 +142,7 @@ function hdbt_subtheme_preprocess_paragraph(array &$variables) { $variables['#attached']['drupalSettings']['helfi_react_search']['sentry_dsn_react'] = $sentry_dsn_react; } - $feed_base_url = Url::fromRoute('view.news_archive_index.news_archive_feed_index')->toString(); + $feed_base_url = Url::fromRoute('view.news_archive.news_archive_feed')->toString(); if ($feed_base_url) { $feed_link = [