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

133 lines
2.8 KiB
YAML

uuid: ad5e0f3b-ff9c-46ba-8646-99ea66882119
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:
- media_library
- path
- text
id: node.post.default
targetEntityType: node
bundle: post
mode: default
content:
body:
type: text_textarea_with_summary
weight: 8
settings:
rows: 9
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings: { }
region: content
created:
type: datetime_timestamp
weight: 2
region: content
settings: { }
third_party_settings: { }
field_excerpt:
weight: 11
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: string_textarea
region: content
field_has_tweet:
weight: 26
settings:
display_label: true
third_party_settings: { }
type: boolean_checkbox
region: content
field_images:
weight: 9
settings:
media_types: { }
third_party_settings: { }
type: media_library_widget
region: content
field_series:
weight: 12
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_tags:
weight: 10
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete_tags
region: content
path:
type: path
weight: 5
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
settings:
display_label: true
weight: 3
region: content
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 7
region: content
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 4
region: content
third_party_settings: { }
title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 1
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
match_limit: 10
region: content
third_party_settings: { }
url_redirects:
weight: 6
region: content
settings: { }
third_party_settings: { }
hidden:
field_sent_to_social_media: true