Configure simple cards & landing page for listing of posts

This commit is contained in:
benjamin melançon 2019-11-18 14:10:28 -05:00
parent 10eccb0e54
commit cedca7f6ec
3 changed files with 42 additions and 29 deletions

View file

@ -23,13 +23,14 @@ dependencies:
third_party_settings: third_party_settings:
ds: ds:
layout: layout:
id: ds_1col id: ds_2col
library: null library: ds/ds_2col
disable_css: false disable_css: false
entity_classes: all_classes entity_classes: all_classes
settings: settings:
wrappers: wrappers:
ds_content: div left: div
right: div
outer_wrapper: div outer_wrapper: div
attributes: '' attributes: ''
link_attribute: '' link_attribute: ''
@ -37,45 +38,46 @@ third_party_settings:
classes: classes:
layout_class: { } layout_class: { }
regions: regions:
ds_content: left:
- field_image - node_post_date
- group_card_content - group_date
- 'bundle_field:node'
- node_title - node_title
right:
- field_image
fields: fields:
'bundle_field:node': node_post_date:
plugin_id: 'bundle_field:node' plugin_id: node_post_date
weight: 2 weight: 0
label: hidden label: hidden
formatter: default formatter: ds_post_date_short
node_title: node_title:
plugin_id: node_title plugin_id: node_title
weight: 3 weight: 2
label: hidden label: hidden
formatter: default formatter: default
settings: settings:
link: true link: true
wrapper: h2 wrapper: h2
class: '' class: 'title is-size-3-desktop is-size-4-tablet is-size-5-mobile'
exclude_node_title: '1' exclude_node_title: '0'
field_group: field_group:
group_card_content: group_date:
children: children:
- 'bundle_field:node' - node_post_date
- node_title
parent_name: '' parent_name: ''
weight: 1 weight: 1
format_type: html_element format_type: html_element
format_settings: format_settings:
id: '' id: ''
classes: '' classes: subtitle
element: div element: p
show_label: false show_label: false
label_element: h3 label_element: h3
label_element_classes: ''
attributes: '' attributes: ''
effect: none effect: none
speed: fast speed: fast
label: 'Card content' label: Date
region: hidden region: hidden
_core: _core:
default_config_hash: wUTdzmd_uDUyf43YNRpJ7ic0Yg9me0T6jp-MTE2t874 default_config_hash: wUTdzmd_uDUyf43YNRpJ7ic0Yg9me0T6jp-MTE2t874
@ -86,8 +88,8 @@ mode: simple_card
content: content:
field_image: field_image:
type: responsive_image type: responsive_image
weight: 0 weight: 3
region: ds_content region: right
label: visually_hidden label: visually_hidden
settings: settings:
responsive_image_style: narrow responsive_image_style: narrow
@ -106,3 +108,4 @@ hidden:
indieweb_syndication: true indieweb_syndication: true
langcode: true langcode: true
links: true links: true
search_api_excerpt: true

View file

@ -8,6 +8,7 @@ dependencies:
- 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:
- ds
- entity_reference_revisions - entity_reference_revisions
- user - user
_core: _core:
@ -19,11 +20,13 @@ mode: full
content: content:
field_body_paragraph: field_body_paragraph:
weight: 0 weight: 0
label: visually_hidden label: hidden
settings: settings:
view_mode: default view_mode: default
link: '' link: ''
third_party_settings: { } third_party_settings:
ds:
ds_limit: ''
type: entity_reference_revisions_entity_view type: entity_reference_revisions_entity_view
region: content region: content
hidden: hidden:
@ -32,3 +35,4 @@ hidden:
indieweb_syndication: true indieweb_syndication: true
langcode: true langcode: true
links: true links: true
search_api_excerpt: true

View file

@ -5,6 +5,8 @@ dependencies:
config: config:
- field.field.paragraph.content_reference.field_content_reference - field.field.paragraph.content_reference.field_content_reference
- paragraphs.paragraphs_type.content_reference - paragraphs.paragraphs_type.content_reference
module:
- ds
id: paragraph.content_reference.default id: paragraph.content_reference.default
targetEntityType: paragraph targetEntityType: paragraph
bundle: content_reference bundle: content_reference
@ -12,10 +14,14 @@ mode: default
content: content:
field_content_reference: field_content_reference:
weight: 0 weight: 0
label: above label: hidden
settings: settings:
link: true view_mode: simple_card
third_party_settings: { } link: false
type: entity_reference_label third_party_settings:
ds:
ds_limit: ''
type: entity_reference_entity_view
region: content region: content
hidden: { } hidden:
search_api_excerpt: true