Skip to content

Commit

Permalink
D8CORE-7578 Adjust person display for lists and improve resolution (#828
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pookmish authored Nov 4, 2024
1 parent 7939306 commit c3a7ef6
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions config/sync/core.entity_view_mode.node.stanford_h3_card_plain.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 4 additions & 5 deletions config/sync/views.view.stanford_person.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c3a7ef6

Please sign in to comment.