diff --git a/conf/cmi/core.entity_view_display.node.job_listing.default.yml b/conf/cmi/core.entity_view_display.node.job_listing.default.yml index b42c74bb..b143487b 100644 --- a/conf/cmi/core.entity_view_display.node.job_listing.default.yml +++ b/conf/cmi/core.entity_view_display.node.job_listing.default.yml @@ -34,12 +34,10 @@ dependencies: - field.field.node.job_listing.field_task_area - field.field.node.job_listing.field_video - field.field.node.job_listing.job_description - - image.style.3_2_m_2x - node.type.job_listing module: - datetime - link - - media - text - user id: node.job_listing.default @@ -79,13 +77,11 @@ content: weight: 0 region: content field_image: - type: media_thumbnail + type: entity_reference_entity_view label: hidden settings: - image_link: '' - image_style: 3_2_m_2x - image_loading: - attribute: lazy + view_mode: job_listing_organization + link: false third_party_settings: { } weight: 15 region: content diff --git a/conf/cmi/core.entity_view_display.taxonomy_term.organization.default.yml b/conf/cmi/core.entity_view_display.taxonomy_term.organization.default.yml index 378ad47b..2084c92e 100644 --- a/conf/cmi/core.entity_view_display.taxonomy_term.organization.default.yml +++ b/conf/cmi/core.entity_view_display.taxonomy_term.organization.default.yml @@ -5,10 +5,10 @@ dependencies: config: - field.field.taxonomy_term.organization.field_default_image - field.field.taxonomy_term.organization.field_external_id - - image.style.3_2_m_2x + - responsive_image.styles.job_listing_org - taxonomy.vocabulary.organization module: - - image + - responsive_image - text _core: default_config_hash: Gz4Fau02tN8C3_Pjzxy-VS8VljtfEJNKjRK2Tfdh1Ag @@ -25,13 +25,13 @@ content: weight: 0 region: content field_default_image: - type: image + type: responsive_image label: above settings: + responsive_image_style: job_listing_org image_link: '' - image_style: 3_2_m_2x image_loading: - attribute: lazy + attribute: eager third_party_settings: { } weight: 1 region: content diff --git a/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme b/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme index 70766697..a861fee9 100644 --- a/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme +++ b/public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme @@ -88,11 +88,14 @@ function hdbt_subtheme_preprocess_organization_information_block(array &$variabl // Set organization default image variable. if (!empty($organization) && !empty($organization->get('field_default_image')->first())) { $variables['content']['organization_default_image'] = $organization->get('field_default_image')->first()->view([ - 'type' => 'image', + 'type' => 'responsive_image', 'label' => 'hidden', 'settings' => [ - 'image_style' => '3_2_m_2x', + 'responsive_image_style' => 'job_listing_org', 'image_link' => '', + 'image_loading' => [ + 'attribute' => 'eager', + ], ], ]); }