From fe6aba1283c14515386009bd64da25396d7794dd Mon Sep 17 00:00:00 2001 From: Dena DeBry Date: Tue, 13 Aug 2024 18:19:33 -0600 Subject: [PATCH] d8core-5741: last taxonomy as tags --- ...play.node.stanford_opportunity.default.yml | 21 +++++++++ ...play.node.stanford_opportunity.default.yml | 9 ++++ ...splay.node.stanford_opportunity.teaser.yml | 2 + ....node.stanford_opportunity.su_opp_tags.yml | 47 +++++++++++++++++++ .../sync/field.storage.node.su_opp_tags.yml | 20 ++++++++ 5 files changed, 99 insertions(+) create mode 100644 config/sync/field.field.node.stanford_opportunity.su_opp_tags.yml create mode 100644 config/sync/field.storage.node.su_opp_tags.yml diff --git a/config/sync/core.entity_form_display.node.stanford_opportunity.default.yml b/config/sync/core.entity_form_display.node.stanford_opportunity.default.yml index c810eebe2..78fb2fa58 100644 --- a/config/sync/core.entity_form_display.node.stanford_opportunity.default.yml +++ b/config/sync/core.entity_form_display.node.stanford_opportunity.default.yml @@ -22,9 +22,12 @@ dependencies: - field.field.node.stanford_opportunity.su_opp_start_date - field.field.node.stanford_opportunity.su_opp_status - field.field.node.stanford_opportunity.su_opp_summary + - field.field.node.stanford_opportunity.su_opp_tags - field.field.node.stanford_opportunity.su_opp_type - node.type.stanford_opportunity module: + - change_labels + - cshs - datetime - link - media_library @@ -217,6 +220,24 @@ content: rows: 5 placeholder: '' third_party_settings: { } + su_opp_tags: + type: cshs + weight: 140 + region: content + settings: + save_lineage: false + force_deepest: false + parent: null + level_labels: '' + hierarchy_depth: 0 + required_depth: 0 + none_label: '- Please select -' + third_party_settings: + change_labels: + add_another: '' + field_label_overwrite: '' + hide_add_another: 0 + force_single_cardinality: 0 su_opp_type: type: entity_reference_autocomplete weight: 139 diff --git a/config/sync/core.entity_view_display.node.stanford_opportunity.default.yml b/config/sync/core.entity_view_display.node.stanford_opportunity.default.yml index 6082f03c7..cd70eea73 100644 --- a/config/sync/core.entity_view_display.node.stanford_opportunity.default.yml +++ b/config/sync/core.entity_view_display.node.stanford_opportunity.default.yml @@ -22,6 +22,7 @@ dependencies: - field.field.node.stanford_opportunity.su_opp_start_date - field.field.node.stanford_opportunity.su_opp_status - field.field.node.stanford_opportunity.su_opp_summary + - field.field.node.stanford_opportunity.su_opp_tags - field.field.node.stanford_opportunity.su_opp_type - node.type.stanford_opportunity module: @@ -209,6 +210,14 @@ content: third_party_settings: { } weight: 115 region: content + su_opp_tags: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 121 + region: content su_opp_type: type: entity_reference_label label: above diff --git a/config/sync/core.entity_view_display.node.stanford_opportunity.teaser.yml b/config/sync/core.entity_view_display.node.stanford_opportunity.teaser.yml index f8766cb8b..84012aee7 100644 --- a/config/sync/core.entity_view_display.node.stanford_opportunity.teaser.yml +++ b/config/sync/core.entity_view_display.node.stanford_opportunity.teaser.yml @@ -23,6 +23,7 @@ dependencies: - field.field.node.stanford_opportunity.su_opp_start_date - field.field.node.stanford_opportunity.su_opp_status - field.field.node.stanford_opportunity.su_opp_summary + - field.field.node.stanford_opportunity.su_opp_tags - field.field.node.stanford_opportunity.su_opp_type - node.type.stanford_opportunity module: @@ -66,4 +67,5 @@ hidden: su_opp_start_date: true su_opp_status: true su_opp_summary: true + su_opp_tags: true su_opp_type: true diff --git a/config/sync/field.field.node.stanford_opportunity.su_opp_tags.yml b/config/sync/field.field.node.stanford_opportunity.su_opp_tags.yml new file mode 100644 index 000000000..ddca01b6f --- /dev/null +++ b/config/sync/field.field.node.stanford_opportunity.su_opp_tags.yml @@ -0,0 +1,47 @@ +uuid: b9e4751b-1713-490a-8406-055325df60bb +langcode: en +status: true +dependencies: + config: + - field.storage.node.su_opp_tags + - node.type.stanford_opportunity + - taxonomy.vocabulary.opportunity_tag_1 + - taxonomy.vocabulary.opportunity_tag_10 + - taxonomy.vocabulary.opportunity_tag_2 + - taxonomy.vocabulary.opportunity_tag_3 + - taxonomy.vocabulary.opportunity_tag_4 + - taxonomy.vocabulary.opportunity_tag_5 + - taxonomy.vocabulary.opportunity_tag_6 + - taxonomy.vocabulary.opportunity_tag_7 + - taxonomy.vocabulary.opportunity_tag_8 + - taxonomy.vocabulary.opportunity_tag_9 +id: node.stanford_opportunity.su_opp_tags +field_name: su_opp_tags +entity_type: node +bundle: stanford_opportunity +label: 'Opportunity Tags' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + opportunity_tag_1: opportunity_tag_1 + opportunity_tag_2: opportunity_tag_2 + opportunity_tag_3: opportunity_tag_3 + opportunity_tag_4: opportunity_tag_4 + opportunity_tag_5: opportunity_tag_5 + opportunity_tag_6: opportunity_tag_6 + opportunity_tag_7: opportunity_tag_7 + opportunity_tag_8: opportunity_tag_8 + opportunity_tag_9: opportunity_tag_9 + opportunity_tag_10: opportunity_tag_10 + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: opportunity_tag_1 +field_type: entity_reference diff --git a/config/sync/field.storage.node.su_opp_tags.yml b/config/sync/field.storage.node.su_opp_tags.yml new file mode 100644 index 000000000..2ab0eb9b6 --- /dev/null +++ b/config/sync/field.storage.node.su_opp_tags.yml @@ -0,0 +1,20 @@ +uuid: f63c2c73-6b16-45af-9a98-798834dd1754 +langcode: en +status: true +dependencies: + module: + - node + - taxonomy +id: node.su_opp_tags +field_name: su_opp_tags +entity_type: node +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false