From 4b5af01921f613f69da73516e8a58688c80549f5 Mon Sep 17 00:00:00 2001 From: Dena DeBry Date: Tue, 14 May 2024 17:09:41 -0600 Subject: [PATCH] D8CORE-7414: Different sorting option for Basic Page lists --- .../sync/views.view.stanford_basic_pages.yml | 58 ++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/config/sync/views.view.stanford_basic_pages.yml b/config/sync/views.view.stanford_basic_pages.yml index 068b90c4c..64c0c9901 100644 --- a/config/sync/views.view.stanford_basic_pages.yml +++ b/config/sync/views.view.stanford_basic_pages.yml @@ -753,7 +753,7 @@ display: - 'config:field.storage.paragraph.su_banner_image' viewfield_block_1: id: viewfield_block_1 - display_title: 'Card Grid' + display_title: 'Card Grid, Creation Date Sort (desc)' display_plugin: viewfield_block position: 2 display_options: @@ -883,3 +883,59 @@ display: - 'config:field.storage.node.su_page_description' - 'config:field.storage.node.su_page_image' - 'config:field.storage.paragraph.su_banner_image' + viewfield_block_2: + id: viewfield_block_2 + display_title: 'Card Grid, Alphabetical Title Sort (asc)' + display_plugin: viewfield_block + position: 2 + display_options: + display_extenders: { } + display_description: '' + style: + type: html_list + options: + row_class: '' + default_row_class: 1 + uses_fields: 0 + type: ul + wrapper_class: '' + class: 'su-list-unstyled grid-container-3' + defaults: + style: false + row: false + arguments: true + sorts: false + row: + type: 'entity:node' + options: + relationship: none + view_mode: stanford_h3_card + block_category: 'Basic Page Type Lists (Views)' + sorts: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + order: ASC + exposed: false + expose: + label: '' + field_identifier: '' + entity_type: node + entity_field: title + plugin_id: standard + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - 'user.node_grants:view' + - user.permissions + tags: + - 'config:field.storage.node.su_page_description' + - 'config:field.storage.node.su_page_image' + - 'config:field.storage.paragraph.su_banner_image'