oliverdavies.uk-drupal-old/config/default/core.entity_view_display.node.post.default.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

57 lines
1.2 KiB
YAML

uuid: 134308d5-6b7b-464e-9e70-ec9e3232fd7a
langcode: en
status: true
dependencies:
config:
- 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:
- text
- user
id: node.post.default
targetEntityType: node
bundle: post
mode: default
content:
body:
label: hidden
type: text_default
weight: 1
settings: { }
third_party_settings: { }
region: content
field_sent_to_social_media:
weight: 3
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
type: boolean
region: content
field_tags:
weight: 2
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
region: content
links:
weight: 0
region: content
settings: { }
third_party_settings: { }
hidden:
field_excerpt: true
field_has_tweet: true
field_images: true
field_series: true