From d0c7fe4f7b216bce4cbb1db35490b8fdc2f05e38 Mon Sep 17 00:00:00 2001 From: Joe Parsons Date: Tue, 23 Jul 2024 10:14:35 -0700 Subject: [PATCH 1/3] Closes #3561: Add NetID field to AZ Person. --- ...ty_form_display.node.az_person.default.yml | 41 +++++++++++------- ...ty_view_display.node.az_person.az_card.yml | 2 + ...ity_view_display.node.az_person.az_row.yml | 2 + ....node.az_person.az_row_with_background.yml | 2 + ...ty_view_display.node.az_person.default.yml | 2 + ...ity_view_display.node.az_person.teaser.yml | 6 +++ ...ld.field.node.az_person.field_az_netid.yml | 18 ++++++++ .../field.storage.node.field_az_netid.yml | 20 +++++++++ ...ty_form_display.node.az_person.default.yml | 43 +++++++++++-------- 9 files changed, 103 insertions(+), 33 deletions(-) create mode 100644 modules/custom/az_person/config/install/field.field.node.az_person.field_az_netid.yml create mode 100644 modules/custom/az_person/config/install/field.storage.node.field_az_netid.yml diff --git a/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml b/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml index 9885f954b2..2f2c470b9e 100644 --- a/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml +++ b/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml @@ -12,6 +12,7 @@ dependencies: - field.field.node.az_person.field_az_links - field.field.node.az_person.field_az_lname - field.field.node.az_person.field_az_media_image + - field.field.node.az_person.field_az_netid - field.field.node.az_person.field_az_person_category - field.field.node.az_person.field_az_person_category_sec - field.field.node.az_person.field_az_phones @@ -50,7 +51,7 @@ third_party_settings: label: 'Summary fields' region: content parent_name: '' - weight: 17 + weight: 19 format_type: details_sidebar format_settings: classes: 'group-summary field-group-tab' @@ -67,13 +68,13 @@ mode: default content: created: type: datetime_timestamp - weight: 19 + weight: 21 region: content settings: { } third_party_settings: { } field_az_address: type: text_textarea - weight: 9 + weight: 10 region: content settings: rows: 9 @@ -81,14 +82,14 @@ content: third_party_settings: { } field_az_attachments: type: file_generic - weight: 12 + weight: 13 region: content settings: progress_indicator: throbber third_party_settings: { } field_az_body: type: text_textarea - weight: 11 + weight: 12 region: content settings: rows: 9 @@ -96,7 +97,7 @@ content: third_party_settings: { } field_az_degrees: type: string_textfield - weight: 13 + weight: 14 region: content settings: size: 60 @@ -104,7 +105,7 @@ content: third_party_settings: { } field_az_email: type: email_default - weight: 7 + weight: 8 region: content settings: placeholder: '' @@ -128,7 +129,7 @@ content: third_party_settings: { } field_az_links: type: link_default - weight: 10 + weight: 11 region: content settings: placeholder_url: '' @@ -151,6 +152,14 @@ content: third_party_settings: media_library_edit: show_edit: '1' + field_az_netid: + type: string_textfield + weight: 6 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } field_az_person_category: type: options_buttons weight: 1 @@ -165,7 +174,7 @@ content: third_party_settings: { } field_az_phones: type: telephone_default - weight: 8 + weight: 9 region: content settings: placeholder: '' @@ -180,7 +189,7 @@ content: third_party_settings: { } field_az_titles: type: string_textfield - weight: 6 + weight: 7 region: content settings: size: 60 @@ -188,27 +197,27 @@ content: third_party_settings: { } path: type: path - weight: 17 + weight: 18 region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox - weight: 15 + weight: 16 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox - weight: 14 + weight: 15 region: content settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox - weight: 16 + weight: 17 region: content settings: display_label: true @@ -223,7 +232,7 @@ content: third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 18 + weight: 20 region: content settings: match_operator: CONTAINS @@ -232,7 +241,7 @@ content: placeholder: '' third_party_settings: { } url_redirects: - weight: 20 + weight: 22 region: content settings: { } third_party_settings: { } diff --git a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_card.yml b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_card.yml index 0a4e9f2e77..331bb955d3 100644 --- a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_card.yml +++ b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_card.yml @@ -13,6 +13,7 @@ dependencies: - field.field.node.az_person.field_az_links - field.field.node.az_person.field_az_lname - field.field.node.az_person.field_az_media_image + - field.field.node.az_person.field_az_netid - field.field.node.az_person.field_az_person_category - field.field.node.az_person.field_az_person_category_sec - field.field.node.az_person.field_az_phones @@ -202,6 +203,7 @@ hidden: field_az_link: true field_az_links: true field_az_lname: true + field_az_netid: true field_az_person_category: true field_az_person_category_sec: true links: true diff --git a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_row.yml b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_row.yml index 4dc7095f0a..617f8c3a67 100644 --- a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_row.yml +++ b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_row.yml @@ -13,6 +13,7 @@ dependencies: - field.field.node.az_person.field_az_links - field.field.node.az_person.field_az_lname - field.field.node.az_person.field_az_media_image + - field.field.node.az_person.field_az_netid - field.field.node.az_person.field_az_person_category - field.field.node.az_person.field_az_person_category_sec - field.field.node.az_person.field_az_phones @@ -225,6 +226,7 @@ hidden: field_az_link: true field_az_links: true field_az_lname: true + field_az_netid: true field_az_person_category: true field_az_person_category_sec: true links: true diff --git a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_row_with_background.yml b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_row_with_background.yml index ea22526082..e75108aed7 100644 --- a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_row_with_background.yml +++ b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.az_row_with_background.yml @@ -13,6 +13,7 @@ dependencies: - field.field.node.az_person.field_az_links - field.field.node.az_person.field_az_lname - field.field.node.az_person.field_az_media_image + - field.field.node.az_person.field_az_netid - field.field.node.az_person.field_az_person_category - field.field.node.az_person.field_az_person_category_sec - field.field.node.az_person.field_az_phones @@ -224,6 +225,7 @@ hidden: field_az_link: true field_az_links: true field_az_lname: true + field_az_netid: true field_az_person_category: true field_az_person_category_sec: true field_az_phones: true diff --git a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.default.yml b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.default.yml index 803523d737..2d7fa49b57 100644 --- a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.default.yml +++ b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.default.yml @@ -12,6 +12,7 @@ dependencies: - field.field.node.az_person.field_az_links - field.field.node.az_person.field_az_lname - field.field.node.az_person.field_az_media_image + - field.field.node.az_person.field_az_netid - field.field.node.az_person.field_az_person_category - field.field.node.az_person.field_az_person_category_sec - field.field.node.az_person.field_az_phones @@ -339,4 +340,5 @@ hidden: field_az_fname: true field_az_link: true field_az_lname: true + field_az_netid: true links: true diff --git a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.teaser.yml b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.teaser.yml index 6b9cd824de..049cec5dc5 100644 --- a/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.teaser.yml +++ b/modules/custom/az_person/config/install/core.entity_view_display.node.az_person.teaser.yml @@ -13,6 +13,7 @@ dependencies: - field.field.node.az_person.field_az_links - field.field.node.az_person.field_az_lname - field.field.node.az_person.field_az_media_image + - field.field.node.az_person.field_az_netid - field.field.node.az_person.field_az_person_category - field.field.node.az_person.field_az_person_category_sec - field.field.node.az_person.field_az_phones @@ -20,7 +21,11 @@ dependencies: - field.field.node.az_person.field_az_titles - node.type.az_person module: + - smart_title - user +third_party_settings: + smart_title: + enabled: false id: node.az_person.teaser targetEntityType: node bundle: az_person @@ -42,6 +47,7 @@ hidden: field_az_links: true field_az_lname: true field_az_media_image: true + field_az_netid: true field_az_person_category: true field_az_person_category_sec: true field_az_phones: true diff --git a/modules/custom/az_person/config/install/field.field.node.az_person.field_az_netid.yml b/modules/custom/az_person/config/install/field.field.node.az_person.field_az_netid.yml new file mode 100644 index 0000000000..ca4697961c --- /dev/null +++ b/modules/custom/az_person/config/install/field.field.node.az_person.field_az_netid.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_az_netid + - node.type.az_person +id: node.az_person.field_az_netid +field_name: field_az_netid +entity_type: node +bundle: az_person +label: NetID +description: 'U of A NetID' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/custom/az_person/config/install/field.storage.node.field_az_netid.yml b/modules/custom/az_person/config/install/field.storage.node.field_az_netid.yml new file mode 100644 index 0000000000..d08e885765 --- /dev/null +++ b/modules/custom/az_person/config/install/field.storage.node.field_az_netid.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - node +id: node.field_az_netid +field_name: field_az_netid +entity_type: node +type: string +settings: + max_length: 16 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml b/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml index 06f7b734ed..7591caeebf 100644 --- a/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml +++ b/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml @@ -13,6 +13,7 @@ dependencies: - field.field.node.az_person.field_az_lname - field.field.node.az_person.field_az_media_image - field.field.node.az_person.field_az_metatag + - field.field.node.az_person.field_az_netid - field.field.node.az_person.field_az_person_category - field.field.node.az_person.field_az_person_category_sec - field.field.node.az_person.field_az_phones @@ -52,7 +53,7 @@ third_party_settings: label: 'Summary fields' region: content parent_name: '' - weight: 17 + weight: 19 format_type: details_sidebar format_settings: classes: 'group-summary field-group-tab' @@ -69,13 +70,13 @@ mode: default content: created: type: datetime_timestamp - weight: 19 + weight: 21 region: content settings: { } third_party_settings: { } field_az_address: type: text_textarea - weight: 9 + weight: 10 region: content settings: rows: 9 @@ -83,14 +84,14 @@ content: third_party_settings: { } field_az_attachments: type: file_generic - weight: 12 + weight: 13 region: content settings: progress_indicator: throbber third_party_settings: { } field_az_body: type: text_textarea - weight: 11 + weight: 12 region: content settings: rows: 9 @@ -98,7 +99,7 @@ content: third_party_settings: { } field_az_degrees: type: string_textfield - weight: 13 + weight: 14 region: content settings: size: 60 @@ -106,7 +107,7 @@ content: third_party_settings: { } field_az_email: type: email_default - weight: 7 + weight: 8 region: content settings: placeholder: '' @@ -130,7 +131,7 @@ content: third_party_settings: { } field_az_links: type: link_default - weight: 10 + weight: 11 region: content settings: placeholder_url: '' @@ -155,12 +156,20 @@ content: show_edit: '1' field_az_metatag: type: metatag_firehose - weight: 21 + weight: 23 region: content settings: sidebar: true use_details: true third_party_settings: { } + field_az_netid: + type: string_textfield + weight: 6 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } field_az_person_category: type: options_buttons weight: 1 @@ -175,7 +184,7 @@ content: third_party_settings: { } field_az_phones: type: telephone_default - weight: 8 + weight: 9 region: content settings: placeholder: '' @@ -190,7 +199,7 @@ content: third_party_settings: { } field_az_titles: type: string_textfield - weight: 6 + weight: 7 region: content settings: size: 60 @@ -198,27 +207,27 @@ content: third_party_settings: { } path: type: path - weight: 17 + weight: 18 region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox - weight: 15 + weight: 16 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox - weight: 14 + weight: 15 region: content settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox - weight: 16 + weight: 17 region: content settings: display_label: true @@ -233,7 +242,7 @@ content: third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 18 + weight: 20 region: content settings: match_operator: CONTAINS @@ -242,7 +251,7 @@ content: placeholder: '' third_party_settings: { } url_redirects: - weight: 20 + weight: 22 region: content settings: { } third_party_settings: { } From a772a9b6810372c5c7289b2102594b1135c88532 Mon Sep 17 00:00:00 2001 From: Joe Parsons <471936+joeparsons@users.noreply.github.com> Date: Wed, 24 Jul 2024 10:50:09 -0700 Subject: [PATCH 2/3] Apply suggestions from code review --- .../install/core.entity_form_display.node.az_person.default.yml | 2 +- .../core.entity_form_display.node.az_person.default.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml b/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml index 2f2c470b9e..bbbb7774d8 100644 --- a/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml +++ b/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml @@ -157,7 +157,7 @@ content: weight: 6 region: content settings: - size: 60 + size: 30 placeholder: '' third_party_settings: { } field_az_person_category: diff --git a/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml b/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml index 7591caeebf..7c4bdf232a 100644 --- a/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml +++ b/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml @@ -167,7 +167,7 @@ content: weight: 6 region: content settings: - size: 60 + size: 30 placeholder: '' third_party_settings: { } field_az_person_category: From ef62c453d8933a92046849c17d91eaef3b2db01c Mon Sep 17 00:00:00 2001 From: Joe Parsons <471936+joeparsons@users.noreply.github.com> Date: Wed, 24 Jul 2024 11:10:33 -0700 Subject: [PATCH 3/3] Adjust weights in form displays --- .../core.entity_form_display.node.az_person.default.yml | 4 ++-- .../core.entity_form_display.node.az_person.default.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml b/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml index bbbb7774d8..9570a86931 100644 --- a/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml +++ b/modules/custom/az_person/config/install/core.entity_form_display.node.az_person.default.yml @@ -154,7 +154,7 @@ content: show_edit: '1' field_az_netid: type: string_textfield - weight: 6 + weight: 7 region: content settings: size: 30 @@ -189,7 +189,7 @@ content: third_party_settings: { } field_az_titles: type: string_textfield - weight: 7 + weight: 6 region: content settings: size: 60 diff --git a/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml b/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml index 7c4bdf232a..694896f0b2 100644 --- a/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml +++ b/modules/custom/az_seo/config/quickstart/core.entity_form_display.node.az_person.default.yml @@ -164,7 +164,7 @@ content: third_party_settings: { } field_az_netid: type: string_textfield - weight: 6 + weight: 7 region: content settings: size: 30 @@ -199,7 +199,7 @@ content: third_party_settings: { } field_az_titles: type: string_textfield - weight: 7 + weight: 6 region: content settings: size: 60