From e163d962e0ea88b39a734312456c58f9f89b36a4 Mon Sep 17 00:00:00 2001 From: Rebecca Hong <34019925+rebeccahongsf@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:46:08 -0700 Subject: [PATCH] D8CORE-7435 D8CORE-7436 | configure card and list display (#814) * D8CORE-7435 | configure card display * D8CORE-7436 | configure teaser and search index display --- ...e.stanford_opportunity.search_indexing.yml | 47 ++++++++++++++----- ...ode.stanford_opportunity.stanford_card.yml | 25 ++++++++-- ....stanford_opportunity.stanford_h3_card.yml | 28 +++++++++-- ...splay.node.stanford_opportunity.teaser.yml | 47 ++++++++++++++----- 4 files changed, 114 insertions(+), 33 deletions(-) diff --git a/config/sync/core.entity_view_display.node.stanford_opportunity.search_indexing.yml b/config/sync/core.entity_view_display.node.stanford_opportunity.search_indexing.yml index 4fe704b69..6916f3627 100644 --- a/config/sync/core.entity_view_display.node.stanford_opportunity.search_indexing.yml +++ b/config/sync/core.entity_view_display.node.stanford_opportunity.search_indexing.yml @@ -28,10 +28,10 @@ dependencies: - field.field.node.stanford_opportunity.su_opp_type - node.type.stanford_opportunity module: + - datetime - layout_builder - layout_builder_restrictions - layout_library - - layout_paragraphs - text - user third_party_settings: @@ -52,27 +52,52 @@ targetEntityType: node bundle: stanford_opportunity mode: search_indexing content: - body: + su_opp_application_deadline: + type: datetime_default + label: inline + settings: + timezone_override: '' + format_type: medium + third_party_settings: { } + weight: 1 + region: content + su_opp_image: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 0 + region: content + su_opp_sponsor: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 2 + region: content + su_opp_summary: type: text_default label: hidden settings: { } third_party_settings: { } - weight: 0 + weight: 3 region: content - su_opp_components: - type: layout_paragraphs + su_opp_type: + type: entity_reference_label label: hidden settings: - view_mode: default - link: '' + link: true third_party_settings: { } - weight: 1 + weight: 4 region: content hidden: + body: true layout_builder__layout: true links: true search_api_excerpt: true - su_opp_application_deadline: true + su_opp_components: true su_opp_contact_email: true su_opp_contact_name: true su_opp_contact_phone: true @@ -80,14 +105,10 @@ hidden: su_opp_course_code: true su_opp_cta_url: true su_opp_eligibility: true - su_opp_image: true su_opp_learn_more: true su_opp_open_date: true su_opp_prerequisites: true su_opp_source: true - su_opp_sponsor: true su_opp_start_date: true su_opp_status: true - su_opp_summary: true su_opp_tags: true - su_opp_type: true diff --git a/config/sync/core.entity_view_display.node.stanford_opportunity.stanford_card.yml b/config/sync/core.entity_view_display.node.stanford_opportunity.stanford_card.yml index a5eac0b0a..f5067d3e8 100644 --- a/config/sync/core.entity_view_display.node.stanford_opportunity.stanford_card.yml +++ b/config/sync/core.entity_view_display.node.stanford_opportunity.stanford_card.yml @@ -64,14 +64,17 @@ third_party_settings: regions: card_image: - su_opp_image + card_super_headline: + - su_opp_sponsor card_headline: - node_title card_body: + - su_opp_type - su_opp_summary fields: node_title: plugin_id: node_title - weight: 1 + weight: 2 label: hidden formatter: default settings: @@ -103,6 +106,14 @@ content: label_tag: '' weight: 0 region: card_image + su_opp_sponsor: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 1 + region: card_super_headline su_opp_summary: type: smart_trim label: hidden @@ -132,7 +143,15 @@ content: field_label: label_value: '' label_tag: '' - weight: 2 + weight: 4 + region: card_body + su_opp_type: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 3 region: card_body hidden: body: true @@ -152,8 +171,6 @@ hidden: su_opp_open_date: true su_opp_prerequisites: true su_opp_source: true - su_opp_sponsor: true su_opp_start_date: true su_opp_status: true su_opp_tags: true - su_opp_type: true diff --git a/config/sync/core.entity_view_display.node.stanford_opportunity.stanford_h3_card.yml b/config/sync/core.entity_view_display.node.stanford_opportunity.stanford_h3_card.yml index 32b56e207..d566676e1 100644 --- a/config/sync/core.entity_view_display.node.stanford_opportunity.stanford_h3_card.yml +++ b/config/sync/core.entity_view_display.node.stanford_opportunity.stanford_h3_card.yml @@ -64,13 +64,17 @@ third_party_settings: regions: card_image: - su_opp_image - card_body: + card_super_headline: + - su_opp_sponsor + card_headline: - node_title + card_body: + - su_opp_type - su_opp_summary fields: node_title: plugin_id: node_title - weight: 1 + weight: 2 label: hidden formatter: default settings: @@ -102,6 +106,14 @@ content: label_tag: '' weight: 0 region: card_image + su_opp_sponsor: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 1 + region: card_super_headline su_opp_summary: type: smart_trim label: hidden @@ -131,7 +143,15 @@ content: field_label: label_value: '' label_tag: '' - weight: 2 + weight: 4 + region: card_body + su_opp_type: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 3 region: card_body hidden: body: true @@ -151,8 +171,6 @@ hidden: su_opp_open_date: true su_opp_prerequisites: true su_opp_source: true - su_opp_sponsor: true su_opp_start_date: true su_opp_status: true su_opp_tags: true - su_opp_type: true diff --git a/config/sync/core.entity_view_display.node.stanford_opportunity.teaser.yml b/config/sync/core.entity_view_display.node.stanford_opportunity.teaser.yml index 7e3789027..f56272e12 100644 --- a/config/sync/core.entity_view_display.node.stanford_opportunity.teaser.yml +++ b/config/sync/core.entity_view_display.node.stanford_opportunity.teaser.yml @@ -28,6 +28,7 @@ dependencies: - field.field.node.stanford_opportunity.su_opp_type - node.type.stanford_opportunity module: + - datetime - text - user id: node.stanford_opportunity.teaser @@ -35,23 +36,51 @@ targetEntityType: node bundle: stanford_opportunity mode: teaser content: - body: - type: text_summary_or_trimmed + su_opp_application_deadline: + type: datetime_default + label: inline + settings: + timezone_override: '' + format_type: medium + third_party_settings: { } + weight: 1 + region: content + su_opp_image: + type: entity_reference_label label: hidden settings: - trim_length: 600 + link: true + third_party_settings: { } + weight: 0 + region: content + su_opp_sponsor: + type: entity_reference_label + label: above + settings: + link: true third_party_settings: { } - weight: 101 + weight: 2 region: content - links: + su_opp_summary: + type: text_default + label: hidden settings: { } third_party_settings: { } - weight: 100 + weight: 3 + region: content + su_opp_type: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 4 region: content hidden: + body: true layout_builder__layout: true + links: true search_api_excerpt: true - su_opp_application_deadline: true su_opp_components: true su_opp_contact_email: true su_opp_contact_name: true @@ -60,14 +89,10 @@ hidden: su_opp_course_code: true su_opp_cta_url: true su_opp_eligibility: true - su_opp_image: true su_opp_learn_more: true su_opp_open_date: true su_opp_prerequisites: true su_opp_source: true - su_opp_sponsor: true su_opp_start_date: true su_opp_status: true - su_opp_summary: true su_opp_tags: true - su_opp_type: true