Configure an RSS teaser view mode for Blog Post and update Term Feed view to use the teaser view mode

This commit is contained in:
Clayton Dewey 2019-01-03 13:55:32 -07:00
parent a588543dd2
commit 53dec4f515
2 changed files with 92 additions and 11 deletions

View file

@ -0,0 +1,86 @@
uuid: d29d83f8-6205-4200-9a59-db61a7fea6ff
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.rss
- field.field.node.blog.body
- field.field.node.blog.comment
- field.field.node.blog.field_authors
- field.field.node.blog.field_body_paragraph
- field.field.node.blog.field_image
- field.field.node.blog.field_meta_tags
- field.field.node.blog.field_summary
- field.field.node.blog.field_tags
- field.field.node.blog.field_topics
- node.type.blog
module:
- ds
- paragraphs
- user
third_party_settings:
ds:
layout:
id: layout_onecol
library: layout_discovery/onecol
disable_css: false
entity_classes: all_classes
settings: { }
regions:
content:
- node_title
- node_post_date
- field_authors
- field_body_paragraph
- node_link
fields:
node_post_date:
plugin_id: node_post_date
weight: 1
label: hidden
formatter: ds_post_date_long
node_title:
plugin_id: node_title
weight: 0
label: hidden
formatter: default
node_link:
plugin_id: node_link
weight: 4
label: hidden
formatter: default
_core:
default_config_hash: e8yvfhoZmb_vDdkLtsMVv8u8XKzSRihmLtMph3nm6rM
id: node.blog.rss
targetEntityType: node
bundle: blog
mode: rss
content:
field_authors:
type: entity_reference_label
weight: 2
region: content
label: hidden
settings:
link: false
third_party_settings:
ds:
ds_limit: ''
field_body_paragraph:
type: paragraph_summary
weight: 3
region: content
label: hidden
settings: { }
third_party_settings: { }
hidden:
body: true
comment: true
field_image: true
field_meta_tags: true
field_summary: true
field_tags: true
field_topics: true
indieweb_bridgypublishtwitter: true
indieweb_syndication: true
links: true

View file

@ -3,6 +3,7 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- core.entity_view_mode.node.rss
- core.entity_view_mode.node.teaser - core.entity_view_mode.node.teaser
- field.storage.node.field_authors - field.storage.node.field_authors
- field.storage.node.field_body_paragraph - field.storage.node.field_body_paragraph
@ -286,19 +287,13 @@ display:
style: style:
type: rss type: rss
options: options:
grouping: { } uses_fields: false
description: 'Drupal related posts by the Agaric tech cooperative.' description: ''
row: row:
type: rss_fields type: node_rss
options: options:
title_field: title relationship: none
link_field: view_node view_mode: rss
description_field: field_body_paragraph
creator_field: field_authors
date_field: created
guid_field_options:
guid_field: nid
guid_field_is_permalink: true
display_extenders: { } display_extenders: { }
fields: fields:
nid: nid: