From 53dec4f51517b4d8347dd661905554a95edc502f Mon Sep 17 00:00:00 2001 From: Clayton Dewey Date: Thu, 3 Jan 2019 13:55:32 -0700 Subject: [PATCH] Configure an RSS teaser view mode for Blog Post and update Term Feed view to use the teaser view mode --- ...core.entity_view_display.node.blog.rss.yml | 86 +++++++++++++++++++ config/sync/views.view.taxonomy_term.yml | 17 ++-- 2 files changed, 92 insertions(+), 11 deletions(-) create mode 100644 config/sync/core.entity_view_display.node.blog.rss.yml diff --git a/config/sync/core.entity_view_display.node.blog.rss.yml b/config/sync/core.entity_view_display.node.blog.rss.yml new file mode 100644 index 0000000..a266897 --- /dev/null +++ b/config/sync/core.entity_view_display.node.blog.rss.yml @@ -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 diff --git a/config/sync/views.view.taxonomy_term.yml b/config/sync/views.view.taxonomy_term.yml index b6b0949..9e11c12 100644 --- a/config/sync/views.view.taxonomy_term.yml +++ b/config/sync/views.view.taxonomy_term.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - core.entity_view_mode.node.rss - core.entity_view_mode.node.teaser - field.storage.node.field_authors - field.storage.node.field_body_paragraph @@ -286,19 +287,13 @@ display: style: type: rss options: - grouping: { } - description: 'Drupal related posts by the Agaric tech cooperative.' + uses_fields: false + description: '' row: - type: rss_fields + type: node_rss options: - title_field: title - link_field: view_node - description_field: field_body_paragraph - creator_field: field_authors - date_field: created - guid_field_options: - guid_field: nid - guid_field_is_permalink: true + relationship: none + view_mode: rss display_extenders: { } fields: nid: