From b5c76a05561b2f578fdfda92d34ecbaad214fccb Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Mon, 4 Nov 2024 09:56:45 -0800 Subject: [PATCH] D8CORE-7578 Adjust person display for lists and improve resolution --- ...w_display.node.stanford_person.default.yml | 7 +- ...stanford_person.stanford_h3_card_plain.yml | 134 ++++++++++++++++++ ..._view_mode.node.stanford_h3_card_plain.yml | 11 ++ config/sync/views.view.stanford_person.yml | 9 +- 4 files changed, 155 insertions(+), 6 deletions(-) create mode 100644 config/sync/core.entity_view_display.node.stanford_person.stanford_h3_card_plain.yml create mode 100644 config/sync/core.entity_view_mode.node.stanford_h3_card_plain.yml diff --git a/config/sync/core.entity_view_display.node.stanford_person.default.yml b/config/sync/core.entity_view_display.node.stanford_person.default.yml index 710daadca..30b997622 100644 --- a/config/sync/core.entity_view_display.node.stanford_person.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_person.default.yml @@ -222,11 +222,16 @@ third_party_settings: settings: view_mode: default link: false - image_style: medium_square + image_style: large_square remove_alt: true third_party_settings: + empty_fields: + handler: '' field_formatter_class: class: su-person-photo + field_label: + label_value: '' + label_tag: '' weight: 0 additional: { } 9e6e76d4-b758-4c2b-97a7-495f43965c3a: diff --git a/config/sync/core.entity_view_display.node.stanford_person.stanford_h3_card_plain.yml b/config/sync/core.entity_view_display.node.stanford_person.stanford_h3_card_plain.yml new file mode 100644 index 000000000..c6e1704af --- /dev/null +++ b/config/sync/core.entity_view_display.node.stanford_person.stanford_h3_card_plain.yml @@ -0,0 +1,134 @@ +uuid: 77178d96-5b98-47dc-a496-09f161632684 +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.stanford_h3_card_plain + - field.field.node.stanford_person.body + - field.field.node.stanford_person.field_menulink + - field.field.node.stanford_person.layout_builder__layout + - field.field.node.stanford_person.stanford_intranet__access + - field.field.node.stanford_person.su_metatags + - field.field.node.stanford_person.su_person_academic_appt + - field.field.node.stanford_person.su_person_admin_appts + - field.field.node.stanford_person.su_person_affiliations + - field.field.node.stanford_person.su_person_components + - field.field.node.stanford_person.su_person_education + - field.field.node.stanford_person.su_person_email + - field.field.node.stanford_person.su_person_fax + - field.field.node.stanford_person.su_person_first_name + - field.field.node.stanford_person.su_person_full_title + - field.field.node.stanford_person.su_person_last_name + - field.field.node.stanford_person.su_person_links + - field.field.node.stanford_person.su_person_location_address + - field.field.node.stanford_person.su_person_location_name + - field.field.node.stanford_person.su_person_mail_code + - field.field.node.stanford_person.su_person_map_url + - field.field.node.stanford_person.su_person_mobile_phone + - field.field.node.stanford_person.su_person_photo + - field.field.node.stanford_person.su_person_profile_link + - field.field.node.stanford_person.su_person_pronouns + - field.field.node.stanford_person.su_person_research + - field.field.node.stanford_person.su_person_research_interests + - field.field.node.stanford_person.su_person_scholarly_interests + - field.field.node.stanford_person.su_person_short_title + - field.field.node.stanford_person.su_person_telephone + - field.field.node.stanford_person.su_person_type_group + - field.field.node.stanford_person.su_shared_tags + - node.type.stanford_person + module: + - ds + - field_formatter_class + - layout_builder + - stanford_media + - user +third_party_settings: + ds: + layout: + id: pattern_card + library: null + disable_css: false + entity_classes: all_classes + settings: + pattern: + field_templates: default + variant: minimal + regions: + card_image: + - su_person_photo + card_body: + - node_title + - su_person_short_title + fields: + node_title: + plugin_id: node_title + weight: 1 + label: hidden + formatter: default + settings: + link: true + 'link class': '' + link_target: '' + wrapper: h3 + class: '' + layout_builder: + enabled: false + allow_custom: false +id: node.stanford_person.stanford_h3_card_plain +targetEntityType: node +bundle: stanford_person +mode: stanford_h3_card_plain +content: + su_person_photo: + type: media_responsive_image_formatter + label: hidden + settings: + view_mode: default + link: false + image_style: responsive_1_1 + remove_alt: false + third_party_settings: + field_formatter_class: + class: '' + weight: 0 + region: card_image + su_person_short_title: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 2 + region: card_body +hidden: + body: true + field_menulink: true + layout_builder__layout: true + links: true + search_api_excerpt: true + stanford_intranet__access: true + su_metatags: true + su_person_academic_appt: true + su_person_admin_appts: true + su_person_affiliations: true + su_person_components: true + su_person_education: true + su_person_email: true + su_person_fax: true + su_person_first_name: true + su_person_full_title: true + su_person_last_name: true + su_person_links: true + su_person_location_address: true + su_person_location_name: true + su_person_mail_code: true + su_person_map_url: true + su_person_mobile_phone: true + su_person_profile_link: true + su_person_pronouns: true + su_person_research: true + su_person_research_interests: true + su_person_scholarly_interests: true + su_person_telephone: true + su_person_type_group: true + su_shared_tags: true diff --git a/config/sync/core.entity_view_mode.node.stanford_h3_card_plain.yml b/config/sync/core.entity_view_mode.node.stanford_h3_card_plain.yml new file mode 100644 index 000000000..dbcdc457b --- /dev/null +++ b/config/sync/core.entity_view_mode.node.stanford_h3_card_plain.yml @@ -0,0 +1,11 @@ +uuid: ebfd1cf5-50f9-4a96-81a0-4b4622cef025 +langcode: en +status: true +dependencies: + module: + - node +id: node.stanford_h3_card_plain +label: 'H3 Card Plain' +description: '' +targetEntityType: node +cache: true diff --git a/config/sync/views.view.stanford_person.yml b/config/sync/views.view.stanford_person.yml index f7c773e6d..1b4e65cf2 100644 --- a/config/sync/views.view.stanford_person.yml +++ b/config/sync/views.view.stanford_person.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - core.entity_view_mode.node.stanford_h3_card_plain - field.storage.node.su_person_photo - field.storage.node.su_person_short_title - field.storage.node.su_person_type_group @@ -552,12 +553,10 @@ display: wrapper_class: '' class: 'su-list-unstyled grid-container-3' row: - type: fields + type: 'entity:node' options: - default_field_elements: true - inline: { } - separator: '' - hide_empty: true + relationship: none + view_mode: stanford_h3_card_plain query: type: views_query options: