From 3262c6ccfa0ae590efe02c03b65f70b8a372e2c5 Mon Sep 17 00:00:00 2001 From: Clayton Dewey Date: Thu, 27 Dec 2018 13:05:59 -0700 Subject: [PATCH] Add contact fields to people content type --- ...e.entity_view_display.node.people.full.yml | 36 +++++++++++++++++-- ...d.field.node.people.field_people_email.yml | 19 ++++++++++ ...ode.people.field_people_public_gpg_key.yml | 27 ++++++++++++++ ....node.people.field_people_social_media.yml | 23 ++++++++++++ .../field.storage.node.field_people_email.yml | 18 ++++++++++ ...orage.node.field_people_public_gpg_key.yml | 23 ++++++++++++ ...storage.node.field_people_social_media.yml | 19 ++++++++++ 7 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 config/sync/field.field.node.people.field_people_email.yml create mode 100644 config/sync/field.field.node.people.field_people_public_gpg_key.yml create mode 100644 config/sync/field.field.node.people.field_people_social_media.yml create mode 100644 config/sync/field.storage.node.field_people_email.yml create mode 100644 config/sync/field.storage.node.field_people_public_gpg_key.yml create mode 100644 config/sync/field.storage.node.field_people_social_media.yml diff --git a/config/sync/core.entity_view_display.node.people.full.yml b/config/sync/core.entity_view_display.node.people.full.yml index 731a5bb..76967e9 100644 --- a/config/sync/core.entity_view_display.node.people.full.yml +++ b/config/sync/core.entity_view_display.node.people.full.yml @@ -7,14 +7,19 @@ dependencies: - field.field.node.people.field_body_paragraph - field.field.node.people.field_image - 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_public_gpg_key + - field.field.node.people.field_people_social_media - field.field.node.people.field_people_type - field.field.node.people.field_summary - image.style.landscape - node.type.people module: - entity_reference_revisions + - file - image + - link - text - user _core: @@ -25,7 +30,7 @@ bundle: people mode: full content: field_body_paragraph: - weight: 4 + weight: 7 label: hidden settings: view_mode: default @@ -42,6 +47,13 @@ content: third_party_settings: { } type: image region: content + field_people_email: + type: basic_string + weight: 4 + region: content + label: hidden + settings: { } + third_party_settings: { } field_people_position: type: string weight: 2 @@ -50,6 +62,26 @@ content: link_to_entity: false third_party_settings: { } 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: weight: 1 label: hidden @@ -66,7 +98,7 @@ content: settings: { } third_party_settings: { } links: - weight: 5 + weight: 8 region: content settings: { } third_party_settings: { } diff --git a/config/sync/field.field.node.people.field_people_email.yml b/config/sync/field.field.node.people.field_people_email.yml new file mode 100644 index 0000000..1aa77bb --- /dev/null +++ b/config/sync/field.field.node.people.field_people_email.yml @@ -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 diff --git a/config/sync/field.field.node.people.field_people_public_gpg_key.yml b/config/sync/field.field.node.people.field_people_public_gpg_key.yml new file mode 100644 index 0000000..29f3c4f --- /dev/null +++ b/config/sync/field.field.node.people.field_people_public_gpg_key.yml @@ -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 diff --git a/config/sync/field.field.node.people.field_people_social_media.yml b/config/sync/field.field.node.people.field_people_social_media.yml new file mode 100644 index 0000000..7f8840e --- /dev/null +++ b/config/sync/field.field.node.people.field_people_social_media.yml @@ -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 diff --git a/config/sync/field.storage.node.field_people_email.yml b/config/sync/field.storage.node.field_people_email.yml new file mode 100644 index 0000000..dcf2f89 --- /dev/null +++ b/config/sync/field.storage.node.field_people_email.yml @@ -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 diff --git a/config/sync/field.storage.node.field_people_public_gpg_key.yml b/config/sync/field.storage.node.field_people_public_gpg_key.yml new file mode 100644 index 0000000..fa38d14 --- /dev/null +++ b/config/sync/field.storage.node.field_people_public_gpg_key.yml @@ -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 diff --git a/config/sync/field.storage.node.field_people_social_media.yml b/config/sync/field.storage.node.field_people_social_media.yml new file mode 100644 index 0000000..cb44122 --- /dev/null +++ b/config/sync/field.storage.node.field_people_social_media.yml @@ -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