Skip to content

Commit

Permalink
d8core-5741: first two taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
buttonwillowsix committed Aug 13, 2024
1 parent 4b243ee commit 7ae78eb
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions config/sync/field.field.node.stanford_opportunity.su_opp_type.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions config/sync/field.storage.node.su_opp_sponsor.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions config/sync/field.storage.node.su_opp_type.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7ae78eb

Please sign in to comment.