oliverdavies.uk-drupal-old/config/default/core.entity_view_display.node.post.teaser.yml
Oliver Davies 0f07d3d231 Add ability to add links to external posts
Add the ability to add links to external blog posts within my blog feed.
This is done based on a new `field_external_link` field that allows for
adding the external link URL and the domain name as the title.

The node links are then overridden to use the external link if there is
one, so the node title and 'read more' links are changed to use the
external link.

Currently, automated tweets are not generated for external posts.

Fixes #182
2020-08-14 16:43:04 +01:00

42 lines
953 B
YAML

uuid: d9e98a06-87e4-4651-9be0-6b145938323f
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.post.body
- field.field.node.post.field_excerpt
- field.field.node.post.field_has_tweet
- field.field.node.post.field_images
- field.field.node.post.field_sent_to_social_media
- field.field.node.post.field_series
- field.field.node.post.field_tags
- node.type.post
module:
- user
id: node.post.teaser
targetEntityType: node
bundle: post
mode: teaser
content:
field_excerpt:
type: basic_string
weight: 0
region: content
label: hidden
settings: { }
third_party_settings: { }
links:
weight: 1
region: content
settings: { }
third_party_settings: { }
hidden:
body: true
field_external_link: true
field_has_tweet: true
field_images: true
field_sent_to_social_media: true
field_series: true
field_tags: true