From 8baf74bc28e9279c03fd0d819ba7d93fe5b0730b Mon Sep 17 00:00:00 2001 From: David Blankenship Date: Wed, 27 Nov 2024 08:38:40 -0500 Subject: [PATCH] feat(YSP-691): add field_external_source_label to posts --- ....entity_form_display.node.post.default.yml | 18 +++++++++++++ ...ore.entity_view_display.node.post.card.yml | 2 ++ ...ntity_view_display.node.post.condensed.yml | 8 ++++++ ....entity_view_display.node.post.default.yml | 25 +++++++++++++++++++ ...ntity_view_display.node.post.list_item.yml | 2 ++ ...y_view_display.node.post.search_result.yml | 9 +++++++ ...e.entity_view_display.node.post.single.yml | 8 ++++++ ...e.entity_view_display.node.post.teaser.yml | 8 ++++++ ....node.post.field_external_source_label.yml | 19 ++++++++++++++ ...orage.node.field_external_source_label.yml | 21 ++++++++++++++++ 10 files changed, 120 insertions(+) create mode 100644 web/profiles/custom/yalesites_profile/config/sync/field.field.node.post.field_external_source_label.yml create mode 100644 web/profiles/custom/yalesites_profile/config/sync/field.storage.node.field_external_source_label.yml diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.node.post.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.node.post.default.yml index 195d09ad2f..4e9c5a3e20 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.node.post.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_form_display.node.post.default.yml @@ -6,6 +6,7 @@ dependencies: - field.field.node.post.field_author - field.field.node.post.field_category - field.field.node.post.field_external_source + - field.field.node.post.field_external_source_label - field.field.node.post.field_login_required - field.field.node.post.field_metatags - field.field.node.post.field_publish_date @@ -26,6 +27,7 @@ dependencies: - metatag - path - text + - workflow_buttons third_party_settings: field_group: group_teaser: @@ -64,6 +66,7 @@ third_party_settings: group_external_link: children: - field_external_source + - field_external_source_label label: 'External Link' region: content parent_name: '' @@ -104,6 +107,14 @@ content: placeholder_url: '' placeholder_title: '' third_party_settings: { } + field_external_source_label: + type: string_textfield + weight: 6 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } field_login_required: type: boolean_checkbox weight: 12 @@ -161,6 +172,13 @@ content: size: 60 placeholder: '' third_party_settings: { } + moderation_state: + type: workflow_buttons + weight: 5 + region: content + settings: + show_current_state: false + third_party_settings: { } path: type: path weight: 7 diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.card.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.card.yml index dc2f81f2e8..ee8bffbc15 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.card.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.card.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.post.field_author - field.field.node.post.field_category - field.field.node.post.field_external_source + - field.field.node.post.field_external_source_label - field.field.node.post.field_login_required - field.field.node.post.field_metatags - field.field.node.post.field_publish_date @@ -84,6 +85,7 @@ content: region: content hidden: field_author: true + field_external_source_label: true field_login_required: true field_metatags: true field_publish_date: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.condensed.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.condensed.yml index b0783bc968..1c33e5705f 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.condensed.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.condensed.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.post.field_author - field.field.node.post.field_category - field.field.node.post.field_external_source + - field.field.node.post.field_external_source_label - field.field.node.post.field_login_required - field.field.node.post.field_metatags - field.field.node.post.field_publish_date @@ -53,6 +54,11 @@ targetEntityType: node bundle: post mode: condensed content: + content_moderation_control: + settings: { } + third_party_settings: { } + weight: -20 + region: content field_external_source: type: link_separate label: hidden @@ -77,6 +83,7 @@ content: hidden: field_author: true field_category: true + field_external_source_label: true field_login_required: true field_metatags: true field_tags: true @@ -86,3 +93,4 @@ hidden: layout_builder__layout: true links: true search_api_excerpt: true + workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.default.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.default.yml index 75196cfa0d..59670c0935 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.default.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.default.yml @@ -6,6 +6,7 @@ dependencies: - field.field.node.post.field_author - field.field.node.post.field_category - field.field.node.post.field_external_source + - field.field.node.post.field_external_source_label - field.field.node.post.field_login_required - field.field.node.post.field_metatags - field.field.node.post.field_publish_date @@ -54,6 +55,22 @@ third_party_settings: entity: layout_builder.entity weight: 1 additional: { } + 4c357fc5-0d1f-4568-9927-91cf8b301f51: + uuid: 4c357fc5-0d1f-4568-9927-91cf8b301f51 + region: content + configuration: + id: 'field_block:node:post:field_external_source_label' + label_display: '0' + context_mapping: + entity: layout_builder.entity + formatter: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 2 + additional: { } third_party_settings: layout_builder_lock: lock: @@ -135,6 +152,14 @@ content: third_party_settings: { } weight: 2 region: content + field_external_source_label: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 3 + region: content hidden: field_login_required: true field_metatags: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.list_item.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.list_item.yml index e1080c7ff6..c4bb41375b 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.list_item.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.list_item.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.post.field_author - field.field.node.post.field_category - field.field.node.post.field_external_source + - field.field.node.post.field_external_source_label - field.field.node.post.field_login_required - field.field.node.post.field_metatags - field.field.node.post.field_publish_date @@ -84,6 +85,7 @@ content: region: content hidden: field_author: true + field_external_source_label: true field_login_required: true field_metatags: true field_publish_date: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.search_result.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.search_result.yml index 55223405ec..e2187ac5a8 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.search_result.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.search_result.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.post.field_author - field.field.node.post.field_category - field.field.node.post.field_external_source + - field.field.node.post.field_external_source_label - field.field.node.post.field_login_required - field.field.node.post.field_metatags - field.field.node.post.field_publish_date @@ -17,6 +18,7 @@ dependencies: - field.field.node.post.layout_builder__layout - node.type.post module: + - link - text - user id: node.post.search_result @@ -24,6 +26,11 @@ targetEntityType: node bundle: post mode: search_result content: + content_moderation_control: + settings: { } + third_party_settings: { } + weight: -20 + region: content field_external_source: type: link_separate label: hidden @@ -51,6 +58,7 @@ content: hidden: field_author: true field_category: true + field_external_source_label: true field_login_required: true field_metatags: true field_publish_date: true @@ -59,3 +67,4 @@ hidden: field_teaser_title: true layout_builder__layout: true links: true + workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.single.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.single.yml index 4cf47cc63a..85594b4190 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.single.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.single.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.post.field_author - field.field.node.post.field_category - field.field.node.post.field_external_source + - field.field.node.post.field_external_source_label - field.field.node.post.field_login_required - field.field.node.post.field_metatags - field.field.node.post.field_publish_date @@ -52,6 +53,11 @@ targetEntityType: node bundle: post mode: single content: + content_moderation_control: + settings: { } + third_party_settings: { } + weight: -20 + region: content field_external_source: type: link label: hidden @@ -100,9 +106,11 @@ content: hidden: field_author: true field_category: true + field_external_source_label: true field_login_required: true field_metatags: true field_tags: true layout_builder__layout: true links: true search_api_excerpt: true + workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.teaser.yml b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.teaser.yml index b24bb84eb3..a394baef36 100644 --- a/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.teaser.yml +++ b/web/profiles/custom/yalesites_profile/config/sync/core.entity_view_display.node.post.teaser.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.post.field_author - field.field.node.post.field_category - field.field.node.post.field_external_source + - field.field.node.post.field_external_source_label - field.field.node.post.field_login_required - field.field.node.post.field_metatags - field.field.node.post.field_publish_date @@ -23,6 +24,11 @@ targetEntityType: node bundle: post mode: teaser content: + content_moderation_control: + settings: { } + third_party_settings: { } + weight: -20 + region: content links: settings: { } third_party_settings: { } @@ -32,6 +38,7 @@ hidden: field_author: true field_category: true field_external_source: true + field_external_source_label: true field_login_required: true field_metatags: true field_publish_date: true @@ -41,3 +48,4 @@ hidden: field_teaser_title: true layout_builder__layout: true search_api_excerpt: true + workflow_buttons: true diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.field.node.post.field_external_source_label.yml b/web/profiles/custom/yalesites_profile/config/sync/field.field.node.post.field_external_source_label.yml new file mode 100644 index 0000000000..b53f618378 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.field.node.post.field_external_source_label.yml @@ -0,0 +1,19 @@ +uuid: d690a148-c4b3-4b0b-b0f4-6826c29bd6cf +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_external_source_label + - node.type.post +id: node.post.field_external_source_label +field_name: field_external_source_label +entity_type: node +bundle: post +label: 'Post Source' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/web/profiles/custom/yalesites_profile/config/sync/field.storage.node.field_external_source_label.yml b/web/profiles/custom/yalesites_profile/config/sync/field.storage.node.field_external_source_label.yml new file mode 100644 index 0000000000..ce243201f8 --- /dev/null +++ b/web/profiles/custom/yalesites_profile/config/sync/field.storage.node.field_external_source_label.yml @@ -0,0 +1,21 @@ +uuid: 2e6aed08-96bf-485a-81e8-bd80018eb87a +langcode: en +status: true +dependencies: + module: + - node +id: node.field_external_source_label +field_name: field_external_source_label +entity_type: node +type: string +settings: + max_length: 255 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false