From 7ae78ebd2c37cfc2952c595bdef9121ec96fd5aa Mon Sep 17 00:00:00 2001 From: Dena DeBry Date: Tue, 13 Aug 2024 11:55:51 -0600 Subject: [PATCH] d8core-5741: first two taxonomy --- ...play.node.stanford_opportunity.default.yml | 22 ++++++++++++++ ...play.node.stanford_opportunity.default.yml | 18 ++++++++++++ ...splay.node.stanford_opportunity.teaser.yml | 4 +++ ...de.stanford_opportunity.su_opp_sponsor.yml | 29 +++++++++++++++++++ ....node.stanford_opportunity.su_opp_type.yml | 29 +++++++++++++++++++ .../field.storage.node.su_opp_sponsor.yml | 20 +++++++++++++ .../sync/field.storage.node.su_opp_type.yml | 20 +++++++++++++ 7 files changed, 142 insertions(+) create mode 100644 config/sync/field.field.node.stanford_opportunity.su_opp_sponsor.yml create mode 100644 config/sync/field.field.node.stanford_opportunity.su_opp_type.yml create mode 100644 config/sync/field.storage.node.su_opp_sponsor.yml create mode 100644 config/sync/field.storage.node.su_opp_type.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 f8f9fcfce..c810eebe2 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 @@ -18,9 +18,11 @@ dependencies: - field.field.node.stanford_opportunity.su_opp_open_date - field.field.node.stanford_opportunity.su_opp_prerequisites - field.field.node.stanford_opportunity.su_opp_source + - field.field.node.stanford_opportunity.su_opp_sponsor - 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_type - node.type.stanford_opportunity module: - datetime @@ -184,6 +186,16 @@ content: placeholder_url: '' placeholder_title: '' third_party_settings: { } + su_opp_sponsor: + type: entity_reference_autocomplete + weight: 138 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } su_opp_start_date: type: datetime_default weight: 127 @@ -205,6 +217,16 @@ content: rows: 5 placeholder: '' third_party_settings: { } + su_opp_type: + type: entity_reference_autocomplete + weight: 139 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } title: type: string_textfield weight: -5 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 56ae1c428..6082f03c7 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 @@ -18,9 +18,11 @@ dependencies: - field.field.node.stanford_opportunity.su_opp_open_date - field.field.node.stanford_opportunity.su_opp_prerequisites - field.field.node.stanford_opportunity.su_opp_source + - field.field.node.stanford_opportunity.su_opp_sponsor - 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_type - node.type.stanford_opportunity module: - datetime @@ -173,6 +175,14 @@ content: third_party_settings: { } weight: 112 region: content + su_opp_sponsor: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 119 + region: content su_opp_start_date: type: datetime_default label: above @@ -199,5 +209,13 @@ content: third_party_settings: { } weight: 115 region: content + su_opp_type: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 120 + region: content hidden: search_api_excerpt: true 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 845324f0a..f8766cb8b 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 @@ -19,9 +19,11 @@ dependencies: - field.field.node.stanford_opportunity.su_opp_open_date - field.field.node.stanford_opportunity.su_opp_prerequisites - field.field.node.stanford_opportunity.su_opp_source + - field.field.node.stanford_opportunity.su_opp_sponsor - 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_type - node.type.stanford_opportunity module: - text @@ -60,6 +62,8 @@ hidden: su_opp_open_date: true su_opp_prerequisites: true su_opp_source: true + su_opp_sponsor: true su_opp_start_date: true su_opp_status: true su_opp_summary: true + su_opp_type: true diff --git a/config/sync/field.field.node.stanford_opportunity.su_opp_sponsor.yml b/config/sync/field.field.node.stanford_opportunity.su_opp_sponsor.yml new file mode 100644 index 000000000..4d69f2824 --- /dev/null +++ b/config/sync/field.field.node.stanford_opportunity.su_opp_sponsor.yml @@ -0,0 +1,29 @@ +uuid: 3812b8d1-d227-48bd-9b7b-de91d5ede28c +langcode: en +status: true +dependencies: + config: + - field.storage.node.su_opp_sponsor + - node.type.stanford_opportunity + - taxonomy.vocabulary.opportunity_sponsor +id: node.stanford_opportunity.su_opp_sponsor +field_name: su_opp_sponsor +entity_type: node +bundle: stanford_opportunity +label: Sponsor +description: 'Who sponsors this opportunity.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + opportunity_sponsor: opportunity_sponsor + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.stanford_opportunity.su_opp_type.yml b/config/sync/field.field.node.stanford_opportunity.su_opp_type.yml new file mode 100644 index 000000000..92638cdfb --- /dev/null +++ b/config/sync/field.field.node.stanford_opportunity.su_opp_type.yml @@ -0,0 +1,29 @@ +uuid: ca54761f-4f3e-4ce8-9435-626ef99d3e11 +langcode: en +status: true +dependencies: + config: + - field.storage.node.su_opp_type + - node.type.stanford_opportunity + - taxonomy.vocabulary.opportunity_type +id: node.stanford_opportunity.su_opp_type +field_name: su_opp_type +entity_type: node +bundle: stanford_opportunity +label: 'Opportunity Type' +description: 'Used to categorize Opportunities.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + opportunity_type: opportunity_type + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.storage.node.su_opp_sponsor.yml b/config/sync/field.storage.node.su_opp_sponsor.yml new file mode 100644 index 000000000..06ef5af83 --- /dev/null +++ b/config/sync/field.storage.node.su_opp_sponsor.yml @@ -0,0 +1,20 @@ +uuid: b2c36db3-7f3f-4e31-b057-abb00545a512 +langcode: en +status: true +dependencies: + module: + - node + - taxonomy +id: node.su_opp_sponsor +field_name: su_opp_sponsor +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 diff --git a/config/sync/field.storage.node.su_opp_type.yml b/config/sync/field.storage.node.su_opp_type.yml new file mode 100644 index 000000000..23f213399 --- /dev/null +++ b/config/sync/field.storage.node.su_opp_type.yml @@ -0,0 +1,20 @@ +uuid: 81307077-a767-4a37-b42c-c40aa4e0db7e +langcode: en +status: true +dependencies: + module: + - node + - taxonomy +id: node.su_opp_type +field_name: su_opp_type +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