Add regular image to landing pages for use on simple card view
This commit is contained in:
parent
e4b66d24c3
commit
3a2ff802d5
6 changed files with 137 additions and 0 deletions
|
@ -4,9 +4,12 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.node.landing_page.field_body_paragraph
|
- field.field.node.landing_page.field_body_paragraph
|
||||||
|
- field.field.node.landing_page.field_image
|
||||||
- field.field.node.landing_page.field_meta_tags
|
- field.field.node.landing_page.field_meta_tags
|
||||||
|
- image.style.thumbnail
|
||||||
- node.type.landing_page
|
- node.type.landing_page
|
||||||
module:
|
module:
|
||||||
|
- image
|
||||||
- metatag
|
- metatag
|
||||||
- paragraphs
|
- paragraphs
|
||||||
- path
|
- path
|
||||||
|
@ -35,6 +38,14 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: entity_reference_paragraphs
|
type: entity_reference_paragraphs
|
||||||
region: content
|
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:
|
field_meta_tags:
|
||||||
weight: 5
|
weight: 5
|
||||||
settings: { }
|
settings: { }
|
||||||
|
|
|
@ -4,6 +4,7 @@ status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
config:
|
config:
|
||||||
- field.field.node.landing_page.field_body_paragraph
|
- field.field.node.landing_page.field_body_paragraph
|
||||||
|
- field.field.node.landing_page.field_image
|
||||||
- field.field.node.landing_page.field_meta_tags
|
- field.field.node.landing_page.field_meta_tags
|
||||||
- node.type.landing_page
|
- node.type.landing_page
|
||||||
module:
|
module:
|
||||||
|
@ -17,8 +18,10 @@ mode: default
|
||||||
content: { }
|
content: { }
|
||||||
hidden:
|
hidden:
|
||||||
field_body_paragraph: true
|
field_body_paragraph: true
|
||||||
|
field_image: true
|
||||||
field_meta_tags: true
|
field_meta_tags: true
|
||||||
indieweb_bridgypublishtwitter: true
|
indieweb_bridgypublishtwitter: true
|
||||||
indieweb_syndication: true
|
indieweb_syndication: true
|
||||||
langcode: true
|
langcode: true
|
||||||
links: true
|
links: true
|
||||||
|
search_api_excerpt: true
|
||||||
|
|
|
@ -5,6 +5,7 @@ dependencies:
|
||||||
config:
|
config:
|
||||||
- core.entity_view_mode.node.full
|
- core.entity_view_mode.node.full
|
||||||
- field.field.node.landing_page.field_body_paragraph
|
- field.field.node.landing_page.field_body_paragraph
|
||||||
|
- field.field.node.landing_page.field_image
|
||||||
- field.field.node.landing_page.field_meta_tags
|
- field.field.node.landing_page.field_meta_tags
|
||||||
- node.type.landing_page
|
- node.type.landing_page
|
||||||
module:
|
module:
|
||||||
|
@ -30,6 +31,7 @@ content:
|
||||||
type: entity_reference_revisions_entity_view
|
type: entity_reference_revisions_entity_view
|
||||||
region: content
|
region: content
|
||||||
hidden:
|
hidden:
|
||||||
|
field_image: true
|
||||||
field_meta_tags: true
|
field_meta_tags: true
|
||||||
indieweb_bridgypublishtwitter: true
|
indieweb_bridgypublishtwitter: true
|
||||||
indieweb_syndication: true
|
indieweb_syndication: true
|
||||||
|
|
|
@ -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
|
|
@ -5,6 +5,7 @@ dependencies:
|
||||||
config:
|
config:
|
||||||
- core.entity_view_mode.node.teaser
|
- core.entity_view_mode.node.teaser
|
||||||
- field.field.node.landing_page.field_body_paragraph
|
- field.field.node.landing_page.field_body_paragraph
|
||||||
|
- field.field.node.landing_page.field_image
|
||||||
- field.field.node.landing_page.field_meta_tags
|
- field.field.node.landing_page.field_meta_tags
|
||||||
- node.type.landing_page
|
- node.type.landing_page
|
||||||
module:
|
module:
|
||||||
|
@ -18,8 +19,10 @@ mode: teaser
|
||||||
content: { }
|
content: { }
|
||||||
hidden:
|
hidden:
|
||||||
field_body_paragraph: true
|
field_body_paragraph: true
|
||||||
|
field_image: true
|
||||||
field_meta_tags: true
|
field_meta_tags: true
|
||||||
indieweb_bridgypublishtwitter: true
|
indieweb_bridgypublishtwitter: true
|
||||||
indieweb_syndication: true
|
indieweb_syndication: true
|
||||||
langcode: true
|
langcode: true
|
||||||
links: true
|
links: true
|
||||||
|
search_api_excerpt: true
|
||||||
|
|
45
config/sync/field.field.node.landing_page.field_image.yml
Normal file
45
config/sync/field.field.node.landing_page.field_image.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue