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

View file

@ -8,6 +8,7 @@ dependencies:
- field.field.node.landing_page.field_meta_tags
- node.type.landing_page
module:
- ds
- entity_reference_revisions
- user
_core:
@ -19,11 +20,13 @@ mode: full
content:
field_body_paragraph:
weight: 0
label: visually_hidden
label: hidden
settings:
view_mode: default
link: ''
third_party_settings: { }
third_party_settings:
ds:
ds_limit: ''
type: entity_reference_revisions_entity_view
region: content
hidden:
@ -32,3 +35,4 @@ hidden:
indieweb_syndication: true
langcode: true
links: true
search_api_excerpt: true

View file

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