Add field_notes to blog posts

This commit is contained in:
Oliver Davies 2020-09-14 08:02:01 +01:00
parent fec4d90943
commit a55da019c7
5 changed files with 74 additions and 15 deletions

View file

@ -9,6 +9,7 @@ dependencies:
- field.field.node.post.field_external_link - field.field.node.post.field_external_link
- field.field.node.post.field_has_tweet - field.field.node.post.field_has_tweet
- field.field.node.post.field_images - field.field.node.post.field_images
- field.field.node.post.field_note
- field.field.node.post.field_sent_to_social_media - field.field.node.post.field_sent_to_social_media
- field.field.node.post.field_series - field.field.node.post.field_series
- field.field.node.post.field_tags - field.field.node.post.field_tags
@ -36,13 +37,13 @@ content:
region: content region: content
created: created:
type: datetime_timestamp type: datetime_timestamp
weight: 8 weight: 9
region: content region: content
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
field_amendments: field_amendments:
type: entity_reference_paragraphs type: entity_reference_paragraphs
weight: 26 weight: 18
settings: settings:
title: Paragraph title: Paragraph
title_plural: Paragraphs title_plural: Paragraphs
@ -61,7 +62,7 @@ content:
type: string_textarea type: string_textarea
region: content region: content
field_has_tweet: field_has_tweet:
weight: 5 weight: 6
settings: settings:
display_label: true display_label: true
third_party_settings: { } third_party_settings: { }
@ -74,6 +75,14 @@ content:
third_party_settings: { } third_party_settings: { }
type: media_library_widget type: media_library_widget
region: content region: content
field_note:
weight: 5
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: text_textarea
region: content
field_series: field_series:
weight: 1 weight: 1
settings: settings:
@ -85,7 +94,7 @@ content:
type: entity_reference_autocomplete type: entity_reference_autocomplete
region: content region: content
field_tags: field_tags:
weight: 6 weight: 7
settings: settings:
match_operator: CONTAINS match_operator: CONTAINS
match_limit: 10 match_limit: 10
@ -96,7 +105,7 @@ content:
region: content region: content
path: path:
type: path type: path
weight: 11 weight: 12
region: content region: content
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
@ -104,17 +113,17 @@ content:
type: boolean_checkbox type: boolean_checkbox
settings: settings:
display_label: true display_label: true
weight: 9 weight: 10
region: content region: content
third_party_settings: { } third_party_settings: { }
publish_on: publish_on:
type: datetime_timestamp_no_default type: datetime_timestamp_no_default
weight: 15 weight: 16
region: content region: content
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
scheduler_settings: scheduler_settings:
weight: 14 weight: 15
region: content region: content
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
@ -122,14 +131,14 @@ content:
type: boolean_checkbox type: boolean_checkbox
settings: settings:
display_label: true display_label: true
weight: 13 weight: 14
region: content region: content
third_party_settings: { } third_party_settings: { }
sticky: sticky:
type: boolean_checkbox type: boolean_checkbox
settings: settings:
display_label: true display_label: true
weight: 10 weight: 11
region: content region: content
third_party_settings: { } third_party_settings: { }
title: title:
@ -142,7 +151,7 @@ content:
third_party_settings: { } third_party_settings: { }
uid: uid:
type: entity_reference_autocomplete type: entity_reference_autocomplete
weight: 7 weight: 8
settings: settings:
match_operator: CONTAINS match_operator: CONTAINS
size: 60 size: 60
@ -152,12 +161,12 @@ content:
third_party_settings: { } third_party_settings: { }
unpublish_on: unpublish_on:
type: datetime_timestamp_no_default type: datetime_timestamp_no_default
weight: 16 weight: 17
region: content region: content
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }
url_redirects: url_redirects:
weight: 12 weight: 13
region: content region: content
settings: { } settings: { }
third_party_settings: { } third_party_settings: { }

View file

@ -9,6 +9,7 @@ dependencies:
- field.field.node.post.field_external_link - field.field.node.post.field_external_link
- field.field.node.post.field_has_tweet - field.field.node.post.field_has_tweet
- field.field.node.post.field_images - field.field.node.post.field_images
- field.field.node.post.field_note
- field.field.node.post.field_sent_to_social_media - field.field.node.post.field_sent_to_social_media
- field.field.node.post.field_series - field.field.node.post.field_series
- field.field.node.post.field_tags - field.field.node.post.field_tags
@ -31,15 +32,22 @@ content:
region: content region: content
field_amendments: field_amendments:
type: entity_reference_revisions_entity_view type: entity_reference_revisions_entity_view
weight: 2 weight: 3
label: above label: above
settings: settings:
view_mode: default view_mode: default
link: '' link: ''
third_party_settings: { } third_party_settings: { }
region: content region: content
field_note:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_tags: field_tags:
weight: 3 weight: 4
label: above label: above
settings: settings:
link: true link: true

View file

@ -9,6 +9,7 @@ dependencies:
- field.field.node.post.field_excerpt - field.field.node.post.field_excerpt
- field.field.node.post.field_has_tweet - field.field.node.post.field_has_tweet
- field.field.node.post.field_images - field.field.node.post.field_images
- field.field.node.post.field_note
- field.field.node.post.field_sent_to_social_media - field.field.node.post.field_sent_to_social_media
- field.field.node.post.field_series - field.field.node.post.field_series
- field.field.node.post.field_tags - field.field.node.post.field_tags
@ -38,6 +39,7 @@ hidden:
field_external_link: true field_external_link: true
field_has_tweet: true field_has_tweet: true
field_images: true field_images: true
field_note: true
field_sent_to_social_media: true field_sent_to_social_media: true
field_series: true field_series: true
field_tags: true field_tags: true

View file

@ -0,0 +1,21 @@
uuid: f7f473a3-a0ed-4c74-8f73-5a35c8b3db56
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_note
- node.type.post
module:
- text
id: node.post.field_note
field_name: field_note
entity_type: node
bundle: post
label: Note
description: 'A note section to display at the end of the post.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text_long

View file

@ -0,0 +1,19 @@
uuid: a953f945-8de8-445e-821f-98bd6e06f5c8
langcode: en
status: true
dependencies:
module:
- node
- text
id: node.field_note
field_name: field_note
entity_type: node
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false