Add contact fields to people content type
This commit is contained in:
parent
2ee3662315
commit
3262c6ccfa
7 changed files with 163 additions and 2 deletions
|
@ -7,14 +7,19 @@ dependencies:
|
||||||
- field.field.node.people.field_body_paragraph
|
- field.field.node.people.field_body_paragraph
|
||||||
- field.field.node.people.field_image
|
- field.field.node.people.field_image
|
||||||
- field.field.node.people.field_meta_tags
|
- field.field.node.people.field_meta_tags
|
||||||
|
- field.field.node.people.field_people_email
|
||||||
- field.field.node.people.field_people_position
|
- field.field.node.people.field_people_position
|
||||||
|
- field.field.node.people.field_people_public_gpg_key
|
||||||
|
- field.field.node.people.field_people_social_media
|
||||||
- field.field.node.people.field_people_type
|
- field.field.node.people.field_people_type
|
||||||
- field.field.node.people.field_summary
|
- field.field.node.people.field_summary
|
||||||
- image.style.landscape
|
- image.style.landscape
|
||||||
- node.type.people
|
- node.type.people
|
||||||
module:
|
module:
|
||||||
- entity_reference_revisions
|
- entity_reference_revisions
|
||||||
|
- file
|
||||||
- image
|
- image
|
||||||
|
- link
|
||||||
- text
|
- text
|
||||||
- user
|
- user
|
||||||
_core:
|
_core:
|
||||||
|
@ -25,7 +30,7 @@ bundle: people
|
||||||
mode: full
|
mode: full
|
||||||
content:
|
content:
|
||||||
field_body_paragraph:
|
field_body_paragraph:
|
||||||
weight: 4
|
weight: 7
|
||||||
label: hidden
|
label: hidden
|
||||||
settings:
|
settings:
|
||||||
view_mode: default
|
view_mode: default
|
||||||
|
@ -42,6 +47,13 @@ content:
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
type: image
|
type: image
|
||||||
region: content
|
region: content
|
||||||
|
field_people_email:
|
||||||
|
type: basic_string
|
||||||
|
weight: 4
|
||||||
|
region: content
|
||||||
|
label: hidden
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
field_people_position:
|
field_people_position:
|
||||||
type: string
|
type: string
|
||||||
weight: 2
|
weight: 2
|
||||||
|
@ -50,6 +62,26 @@ content:
|
||||||
link_to_entity: false
|
link_to_entity: false
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
region: content
|
region: content
|
||||||
|
field_people_public_gpg_key:
|
||||||
|
type: file_default
|
||||||
|
weight: 5
|
||||||
|
region: content
|
||||||
|
label: hidden
|
||||||
|
settings:
|
||||||
|
use_description_as_link_text: true
|
||||||
|
third_party_settings: { }
|
||||||
|
field_people_social_media:
|
||||||
|
type: link
|
||||||
|
weight: 6
|
||||||
|
region: content
|
||||||
|
label: visually_hidden
|
||||||
|
settings:
|
||||||
|
trim_length: 80
|
||||||
|
url_only: false
|
||||||
|
url_plain: false
|
||||||
|
rel: ''
|
||||||
|
target: ''
|
||||||
|
third_party_settings: { }
|
||||||
field_people_type:
|
field_people_type:
|
||||||
weight: 1
|
weight: 1
|
||||||
label: hidden
|
label: hidden
|
||||||
|
@ -66,7 +98,7 @@ content:
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
links:
|
links:
|
||||||
weight: 5
|
weight: 8
|
||||||
region: content
|
region: content
|
||||||
settings: { }
|
settings: { }
|
||||||
third_party_settings: { }
|
third_party_settings: { }
|
||||||
|
|
19
config/sync/field.field.node.people.field_people_email.yml
Normal file
19
config/sync/field.field.node.people.field_people_email.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
uuid: 2fc4903b-ce60-42de-ad58-e45374026971
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.node.field_people_email
|
||||||
|
- node.type.people
|
||||||
|
id: node.people.field_people_email
|
||||||
|
field_name: field_people_email
|
||||||
|
entity_type: node
|
||||||
|
bundle: people
|
||||||
|
label: Email
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings: { }
|
||||||
|
field_type: email
|
|
@ -0,0 +1,27 @@
|
||||||
|
uuid: d2dd2b85-18ec-42d5-8340-47d89e136125
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.node.field_people_public_gpg_key
|
||||||
|
- node.type.people
|
||||||
|
module:
|
||||||
|
- file
|
||||||
|
id: node.people.field_people_public_gpg_key
|
||||||
|
field_name: field_people_public_gpg_key
|
||||||
|
entity_type: node
|
||||||
|
bundle: people
|
||||||
|
label: 'Public GPG Key'
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings:
|
||||||
|
file_directory: '[date:custom:Y]-[date:custom:m]'
|
||||||
|
file_extensions: asc
|
||||||
|
max_filesize: ''
|
||||||
|
description_field: true
|
||||||
|
handler: 'default:file'
|
||||||
|
handler_settings: { }
|
||||||
|
field_type: file
|
|
@ -0,0 +1,23 @@
|
||||||
|
uuid: 0861ae84-c026-4690-bcb8-699f59b67518
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.node.field_people_social_media
|
||||||
|
- node.type.people
|
||||||
|
module:
|
||||||
|
- link
|
||||||
|
id: node.people.field_people_social_media
|
||||||
|
field_name: field_people_social_media
|
||||||
|
entity_type: node
|
||||||
|
bundle: people
|
||||||
|
label: 'Social Media'
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings:
|
||||||
|
link_type: 16
|
||||||
|
title: 1
|
||||||
|
field_type: link
|
18
config/sync/field.storage.node.field_people_email.yml
Normal file
18
config/sync/field.storage.node.field_people_email.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
uuid: f806baa5-39c5-4179-bf5a-03c988ba232a
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- node
|
||||||
|
id: node.field_people_email
|
||||||
|
field_name: field_people_email
|
||||||
|
entity_type: node
|
||||||
|
type: email
|
||||||
|
settings: { }
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
|
@ -0,0 +1,23 @@
|
||||||
|
uuid: 8a094c2a-4b84-40eb-945e-5be6dd2217ea
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- file
|
||||||
|
- node
|
||||||
|
id: node.field_people_public_gpg_key
|
||||||
|
field_name: field_people_public_gpg_key
|
||||||
|
entity_type: node
|
||||||
|
type: file
|
||||||
|
settings:
|
||||||
|
display_field: false
|
||||||
|
display_default: false
|
||||||
|
uri_scheme: public
|
||||||
|
target_type: file
|
||||||
|
module: file
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
19
config/sync/field.storage.node.field_people_social_media.yml
Normal file
19
config/sync/field.storage.node.field_people_social_media.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
uuid: accd7c44-5f5b-4a7b-bfba-54ed0479c9be
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- link
|
||||||
|
- node
|
||||||
|
id: node.field_people_social_media
|
||||||
|
field_name: field_people_social_media
|
||||||
|
entity_type: node
|
||||||
|
type: link
|
||||||
|
settings: { }
|
||||||
|
module: link
|
||||||
|
locked: false
|
||||||
|
cardinality: -1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
Loading…
Reference in a new issue