oliverdavies.uk-drupal-old/config/default/core.entity_view_display.node.post.teaser.yml
Oliver Davies 8385d6fef7 Don't send posts to social media multiple times
Check if a post has previously been sent to social media, by checking
the value of a `field_sent_to_social_media` field.

This field is hidden on the node add/edit forms, and populated when a
post is sent to social media. Once this happens, it will not be sent to
social media again.

This change also populates the field for all existing posts, so that
they won't be re-sent to social media either.
2020-08-12 22:33:16 +01:00

41 lines
925 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_has_tweet: true
field_images: true
field_sent_to_social_media: true
field_series: true
field_tags: true