Add subtitle field

This commit is contained in:
benjamin melançon 2019-07-27 17:39:49 -04:00
parent 13e1182a2a
commit 3565169cd3
4 changed files with 83 additions and 25 deletions

View file

@ -16,6 +16,7 @@ dependencies:
- field.field.node.article.field_practices_tools_strategies
- field.field.node.article.field_publication_date
- field.field.node.article.field_regions
- field.field.node.article.field_subtitle
- field.field.node.article.field_summary
- field.field.node.article.field_tags
- field.field.node.article.field_topics
@ -41,25 +42,25 @@ mode: default
content:
comment:
type: comment_default
weight: 12
weight: 13
settings: { }
third_party_settings: { }
region: content
created:
type: datetime_timestamp
weight: 9
weight: 10
settings: { }
third_party_settings: { }
region: content
field_article_type:
weight: 1
weight: 2
settings: { }
third_party_settings: { }
type: options_select
region: content
field_authors:
type: entity_reference_autocomplete
weight: 2
weight: 3
region: content
settings:
match_operator: CONTAINS
@ -67,7 +68,7 @@ content:
placeholder: ''
third_party_settings: { }
field_body_paragraph:
weight: 5
weight: 6
settings:
title: Paragraph
title_plural: Paragraphs
@ -79,7 +80,7 @@ content:
type: entity_reference_paragraphs
region: content
field_economic_sectors:
weight: 52
weight: 19
settings:
match_operator: CONTAINS
size: 60
@ -89,7 +90,7 @@ content:
region: content
field_image:
type: image_focal_point
weight: 3
weight: 4
settings:
progress_indicator: throbber
preview_image_style: thumbnail
@ -98,7 +99,7 @@ content:
third_party_settings: { }
region: content
field_institutions_structures:
weight: 53
weight: 20
settings:
match_operator: CONTAINS
size: 60
@ -107,13 +108,13 @@ content:
type: entity_reference_autocomplete
region: content
field_meta_tags:
weight: 14
weight: 15
settings: { }
third_party_settings: { }
type: metatag_firehose
region: content
field_movements_struggles:
weight: 54
weight: 21
settings:
match_operator: CONTAINS
size: 60
@ -122,7 +123,7 @@ content:
type: entity_reference_autocomplete
region: content
field_practices_tools_strategies:
weight: 55
weight: 22
settings:
match_operator: CONTAINS
size: 60
@ -131,13 +132,13 @@ content:
type: entity_reference_autocomplete
region: content
field_publication_date:
weight: 58
weight: 25
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_regions:
weight: 57
weight: 24
settings:
match_operator: CONTAINS
size: 60
@ -145,8 +146,16 @@ content:
third_party_settings: { }
type: entity_reference_autocomplete
region: content
field_subtitle:
weight: 1
settings:
size: 100
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_summary:
weight: 4
weight: 5
settings:
rows: 5
placeholder: ''
@ -155,7 +164,7 @@ content:
region: content
field_tags:
type: entity_reference_autocomplete_tags
weight: 7
weight: 8
settings:
match_operator: CONTAINS
size: 60
@ -163,20 +172,20 @@ content:
third_party_settings: { }
region: content
field_topics:
weight: 6
weight: 7
settings: { }
third_party_settings: { }
type: options_select
region: content
field_upload:
weight: 51
weight: 18
settings:
progress_indicator: throbber
third_party_settings: { }
type: file_generic
region: content
field_visions_models:
weight: 56
weight: 23
settings:
match_operator: CONTAINS
size: 60
@ -186,7 +195,7 @@ content:
region: content
path:
type: path
weight: 13
weight: 14
settings: { }
third_party_settings: { }
region: content
@ -194,21 +203,21 @@ content:
type: boolean_checkbox
settings:
display_label: true
weight: 10
weight: 11
third_party_settings: { }
region: content
status:
type: boolean_checkbox
settings:
display_label: true
weight: 15
weight: 16
region: content
third_party_settings: { }
sticky:
type: boolean_checkbox
settings:
display_label: true
weight: 11
weight: 12
third_party_settings: { }
region: content
title:
@ -221,7 +230,7 @@ content:
region: content
uid:
type: entity_reference_autocomplete
weight: 8
weight: 9
settings:
match_operator: CONTAINS
size: 60
@ -229,9 +238,9 @@ content:
third_party_settings: { }
region: content
url_redirects:
weight: 50
weight: 17
region: content
settings: { }
third_party_settings: { }
region: content
hidden:
body: true

View file

@ -16,6 +16,7 @@ dependencies:
- field.field.node.article.field_practices_tools_strategies
- field.field.node.article.field_publication_date
- field.field.node.article.field_regions
- field.field.node.article.field_subtitle
- field.field.node.article.field_summary
- field.field.node.article.field_tags
- field.field.node.article.field_topics
@ -82,6 +83,14 @@ content:
third_party_settings: { }
type: entity_reference_label
region: content
field_subtitle:
weight: 9
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_upload:
weight: 1
label: above

View file

@ -0,0 +1,19 @@
uuid: 147ae323-fafd-414d-9ac7-07952963bab0
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_subtitle
- node.type.article
id: node.article.field_subtitle
field_name: field_subtitle
entity_type: node
bundle: article
label: Subtitle
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View file

@ -0,0 +1,21 @@
uuid: 7c4132e1-ae08-4fdf-9f21-485781e16f36
langcode: en
status: true
dependencies:
module:
- node
id: node.field_subtitle
field_name: field_subtitle
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false