From 3a2ff802d55599eadfb2a4e13c1368947a314bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 15 Jun 2020 16:02:26 -0400 Subject: [PATCH] Add regular image to landing pages for use on simple card view --- ...form_display.node.landing_page.default.yml | 11 +++ ...view_display.node.landing_page.default.yml | 3 + ...ty_view_display.node.landing_page.full.yml | 2 + ..._display.node.landing_page.simple_card.yml | 73 +++++++++++++++++++ ..._view_display.node.landing_page.teaser.yml | 3 + ...ld.field.node.landing_page.field_image.yml | 45 ++++++++++++ 6 files changed, 137 insertions(+) create mode 100644 config/sync/core.entity_view_display.node.landing_page.simple_card.yml create mode 100644 config/sync/field.field.node.landing_page.field_image.yml diff --git a/config/sync/core.entity_form_display.node.landing_page.default.yml b/config/sync/core.entity_form_display.node.landing_page.default.yml index c0a0391..e375e0f 100644 --- a/config/sync/core.entity_form_display.node.landing_page.default.yml +++ b/config/sync/core.entity_form_display.node.landing_page.default.yml @@ -4,9 +4,12 @@ status: true dependencies: config: - field.field.node.landing_page.field_body_paragraph + - field.field.node.landing_page.field_image - field.field.node.landing_page.field_meta_tags + - image.style.thumbnail - node.type.landing_page module: + - image - metatag - paragraphs - path @@ -35,6 +38,14 @@ content: third_party_settings: { } type: entity_reference_paragraphs region: content + field_image: + weight: 51 + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + type: image_image + region: content field_meta_tags: weight: 5 settings: { } diff --git a/config/sync/core.entity_view_display.node.landing_page.default.yml b/config/sync/core.entity_view_display.node.landing_page.default.yml index 14d7c35..ff5a326 100644 --- a/config/sync/core.entity_view_display.node.landing_page.default.yml +++ b/config/sync/core.entity_view_display.node.landing_page.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.node.landing_page.field_body_paragraph + - field.field.node.landing_page.field_image - field.field.node.landing_page.field_meta_tags - node.type.landing_page module: @@ -17,8 +18,10 @@ mode: default content: { } hidden: field_body_paragraph: true + field_image: true field_meta_tags: true indieweb_bridgypublishtwitter: true indieweb_syndication: true langcode: true links: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.landing_page.full.yml b/config/sync/core.entity_view_display.node.landing_page.full.yml index 7ac1078..0445bc5 100644 --- a/config/sync/core.entity_view_display.node.landing_page.full.yml +++ b/config/sync/core.entity_view_display.node.landing_page.full.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.node.full - field.field.node.landing_page.field_body_paragraph + - field.field.node.landing_page.field_image - field.field.node.landing_page.field_meta_tags - node.type.landing_page module: @@ -30,6 +31,7 @@ content: type: entity_reference_revisions_entity_view region: content hidden: + field_image: true field_meta_tags: true indieweb_bridgypublishtwitter: true indieweb_syndication: true diff --git a/config/sync/core.entity_view_display.node.landing_page.simple_card.yml b/config/sync/core.entity_view_display.node.landing_page.simple_card.yml new file mode 100644 index 0000000..24d849a --- /dev/null +++ b/config/sync/core.entity_view_display.node.landing_page.simple_card.yml @@ -0,0 +1,73 @@ +uuid: fb5873a3-19ba-42e2-b348-db186ee58dd9 +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.simple_card + - field.field.node.landing_page.field_body_paragraph + - field.field.node.landing_page.field_image + - field.field.node.landing_page.field_meta_tags + - node.type.landing_page + - responsive_image.styles.narrow + module: + - ds + - responsive_image + - user +third_party_settings: + ds: + layout: + id: ds_2col + library: ds/ds_2col + disable_css: false + entity_classes: all_classes + settings: + label: '' + wrappers: + left: div + right: div + outer_wrapper: div + attributes: '' + link_attribute: '' + link_custom: '' + classes: + layout_class: { } + regions: + left: + - node_title + right: + - field_image + fields: + node_title: + plugin_id: node_title + weight: 0 + label: hidden + formatter: default + settings: + link: true + wrapper: h2 + class: 'title is-size-3-desktop is-size-4-tablet is-size-5-mobile' + exclude_node_title: '0' +_core: + default_config_hash: v2M7V8tN6TiqnoWONGAwAfzJywu0vB04hvs-LQx-bIQ +id: node.landing_page.simple_card +targetEntityType: node +bundle: landing_page +mode: simple_card +content: + field_image: + type: responsive_image + weight: 1 + region: right + label: hidden + settings: + responsive_image_style: narrow + image_link: content + third_party_settings: { } +hidden: + field_body_paragraph: true + field_meta_tags: true + indieweb_bridgypublishtwitter: true + indieweb_syndication: true + langcode: true + links: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.landing_page.teaser.yml b/config/sync/core.entity_view_display.node.landing_page.teaser.yml index 8c00d05..2c62f66 100644 --- a/config/sync/core.entity_view_display.node.landing_page.teaser.yml +++ b/config/sync/core.entity_view_display.node.landing_page.teaser.yml @@ -5,6 +5,7 @@ dependencies: config: - core.entity_view_mode.node.teaser - field.field.node.landing_page.field_body_paragraph + - field.field.node.landing_page.field_image - field.field.node.landing_page.field_meta_tags - node.type.landing_page module: @@ -18,8 +19,10 @@ mode: teaser content: { } hidden: field_body_paragraph: true + field_image: true field_meta_tags: true indieweb_bridgypublishtwitter: true indieweb_syndication: true langcode: true links: true + search_api_excerpt: true diff --git a/config/sync/field.field.node.landing_page.field_image.yml b/config/sync/field.field.node.landing_page.field_image.yml new file mode 100644 index 0000000..79a9322 --- /dev/null +++ b/config/sync/field.field.node.landing_page.field_image.yml @@ -0,0 +1,45 @@ +uuid: dfc742b6-f16a-46d3-9174-71d4023daf7c +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_image + - node.type.landing_page + module: + - content_translation + - image +third_party_settings: + content_translation: + translation_sync: + alt: alt + title: title + file: '0' +id: node.landing_page.field_image +field_name: field_image +entity_type: node +bundle: landing_page +label: Image +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'png gif jpg jpeg' + max_filesize: '' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: true + title_field: false + title_field_required: false + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null + handler: 'default:file' + handler_settings: { } +field_type: image