From 52278c3a53510d9bc3f12a3b1ad3180aedf68ff6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 30 May 2025 01:06:31 +0100 Subject: [PATCH] Add field_topic to podcast episodes --- ...m_display.node.podcast_episode.default.yml | 36 +++++++++++++------ ...w_display.node.podcast_episode.default.yml | 2 ++ ...ew_display.node.podcast_episode.teaser.yml | 2 ++ ...field.node.podcast_episode.field_topic.yml | 19 ++++++++++ .../sync/field.storage.node.field_topic.yml | 21 +++++++++++ 5 files changed, 69 insertions(+), 11 deletions(-) create mode 100644 config/sync/field.field.node.podcast_episode.field_topic.yml create mode 100644 config/sync/field.storage.node.field_topic.yml diff --git a/config/sync/core.entity_form_display.node.podcast_episode.default.yml b/config/sync/core.entity_form_display.node.podcast_episode.default.yml index 00a64ec8e..bf7d918ad 100644 --- a/config/sync/core.entity_form_display.node.podcast_episode.default.yml +++ b/config/sync/core.entity_form_display.node.podcast_episode.default.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.podcast_episode.field_episode_number - field.field.node.podcast_episode.field_episode_recording - field.field.node.podcast_episode.field_podcast_guests + - field.field.node.podcast_episode.field_topic - node.type.podcast_episode module: - media_library @@ -29,27 +30,27 @@ content: third_party_settings: { } created: type: datetime_timestamp - weight: 10 + weight: 4 region: content settings: { } third_party_settings: { } field_episode_number: type: number - weight: 122 + weight: 12 region: content settings: placeholder: '' third_party_settings: { } field_episode_recording: type: media_library_widget - weight: 121 + weight: 11 region: content settings: media_types: { } third_party_settings: { } field_podcast_guests: type: entity_reference_autocomplete - weight: 123 + weight: 13 region: content settings: match_operator: CONTAINS @@ -57,41 +58,49 @@ content: size: 60 placeholder: '' third_party_settings: { } + field_topic: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } path: type: path - weight: 30 + weight: 8 region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox - weight: 15 + weight: 6 region: content settings: display_label: true third_party_settings: { } simple_sitemap: - weight: 10 + weight: 5 region: content settings: { } third_party_settings: { } status: type: boolean_checkbox - weight: 120 + weight: 10 region: content settings: display_label: true third_party_settings: { } sticky: type: boolean_checkbox - weight: 16 + weight: 7 region: content settings: display_label: true third_party_settings: { } title: type: string_textfield - weight: -5 + weight: 0 region: content settings: size: 60 @@ -99,7 +108,7 @@ content: third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 5 + weight: 3 region: content settings: match_operator: CONTAINS @@ -107,4 +116,9 @@ content: size: 60 placeholder: '' third_party_settings: { } + url_redirects: + weight: 9 + region: content + settings: { } + third_party_settings: { } hidden: { } diff --git a/config/sync/core.entity_view_display.node.podcast_episode.default.yml b/config/sync/core.entity_view_display.node.podcast_episode.default.yml index 38e1a802d..e5387e897 100644 --- a/config/sync/core.entity_view_display.node.podcast_episode.default.yml +++ b/config/sync/core.entity_view_display.node.podcast_episode.default.yml @@ -7,6 +7,7 @@ dependencies: - field.field.node.podcast_episode.field_episode_number - field.field.node.podcast_episode.field_episode_recording - field.field.node.podcast_episode.field_podcast_guests + - field.field.node.podcast_episode.field_topic - node.type.podcast_episode module: - text @@ -35,4 +36,5 @@ content: hidden: field_episode_number: true field_podcast_guests: true + field_topic: true links: true diff --git a/config/sync/core.entity_view_display.node.podcast_episode.teaser.yml b/config/sync/core.entity_view_display.node.podcast_episode.teaser.yml index 642cf22f8..febdf3e47 100644 --- a/config/sync/core.entity_view_display.node.podcast_episode.teaser.yml +++ b/config/sync/core.entity_view_display.node.podcast_episode.teaser.yml @@ -8,6 +8,7 @@ dependencies: - field.field.node.podcast_episode.field_episode_number - field.field.node.podcast_episode.field_episode_recording - field.field.node.podcast_episode.field_podcast_guests + - field.field.node.podcast_episode.field_topic - node.type.podcast_episode module: - text @@ -34,3 +35,4 @@ hidden: field_episode_number: true field_episode_recording: true field_podcast_guests: true + field_topic: true diff --git a/config/sync/field.field.node.podcast_episode.field_topic.yml b/config/sync/field.field.node.podcast_episode.field_topic.yml new file mode 100644 index 000000000..5dcac4f86 --- /dev/null +++ b/config/sync/field.field.node.podcast_episode.field_topic.yml @@ -0,0 +1,19 @@ +uuid: 220bd2c1-383e-491b-a58f-df61fc14bff9 +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_topic + - node.type.podcast_episode +id: node.podcast_episode.field_topic +field_name: field_topic +entity_type: node +bundle: podcast_episode +label: Topic +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.storage.node.field_topic.yml b/config/sync/field.storage.node.field_topic.yml new file mode 100644 index 000000000..e4b29436e --- /dev/null +++ b/config/sync/field.storage.node.field_topic.yml @@ -0,0 +1,21 @@ +uuid: 18e19702-1f24-4ddd-94b6-ce2cbb01cf40 +langcode: en +status: true +dependencies: + module: + - node +id: node.field_topic +field_name: field_topic +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