Skip to content

Commit

Permalink
Merge pull request #530 from acoleman/majors-updates-two
Browse files Browse the repository at this point in the history
"[#529] Adding fields for multiple college majors and other additions"
  • Loading branch information
ericras authored Aug 24, 2023
2 parents e69b99a + 95f387b commit 1ad5702
Show file tree
Hide file tree
Showing 24 changed files with 249 additions and 84 deletions.
31 changes: 20 additions & 11 deletions config/sync/core.entity_form_display.node.major.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies:
- field.field.node.major.n_major_notable_courses_intro
- field.field.node.major.n_major_otc_intro
- field.field.node.major.n_major_outside_the_classroom
- field.field.node.major.n_major_pathways
- field.field.node.major.n_major_point_pride
- field.field.node.major.n_major_program_features
- field.field.node.major.n_major_program_features_image
Expand Down Expand Up @@ -68,7 +69,7 @@ third_party_settings:
label: Courses
region: content
parent_name: ''
weight: 12
weight: 13
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -88,7 +89,7 @@ third_party_settings:
label: 'Huskers Do Big Things'
region: content
parent_name: ''
weight: 13
weight: 14
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -103,7 +104,7 @@ third_party_settings:
label: 'Program Features'
region: content
parent_name: ''
weight: 11
weight: 12
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -189,15 +190,15 @@ content:
third_party_settings: { }
n_major_careers_list:
type: string_textfield
weight: 21
weight: 26
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
n_major_careers_title:
type: string_textfield
weight: 20
weight: 25
region: content
settings:
size: 60
Expand Down Expand Up @@ -271,15 +272,15 @@ content:
third_party_settings: { }
n_major_grad_schools_list:
type: string_textfield
weight: 19
weight: 24
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
n_major_grad_schools_title:
type: string_textfield
weight: 18
weight: 23
region: content
settings:
size: 60
Expand All @@ -303,23 +304,23 @@ content:
third_party_settings: { }
n_major_huskers_do_intro:
type: string_textarea
weight: 14
weight: 20
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
n_major_internships_list:
type: string_textfield
weight: 16
weight: 22
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
n_major_internships_title:
type: string_textfield
weight: 15
weight: 21
region: content
settings:
size: 60
Expand Down Expand Up @@ -380,7 +381,7 @@ content:
third_party_settings: { }
n_major_otc_intro:
type: string_textarea
weight: 14
weight: 15
region: content
settings:
rows: 5
Expand All @@ -405,6 +406,14 @@ content:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
n_major_pathways:
type: text_textarea
weight: 11
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
n_major_point_pride:
type: paragraphs
weight: 10
Expand Down
10 changes: 9 additions & 1 deletion config/sync/core.entity_view_display.node.major.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies:
- field.field.node.major.n_major_notable_courses_intro
- field.field.node.major.n_major_otc_intro
- field.field.node.major.n_major_outside_the_classroom
- field.field.node.major.n_major_pathways
- field.field.node.major.n_major_point_pride
- field.field.node.major.n_major_program_features
- field.field.node.major.n_major_program_features_image
Expand Down Expand Up @@ -144,7 +145,7 @@ content:
svg_render_as_image: true
third_party_settings:
image_class:
class: 'dcf-ratio-child dcf-obj-fit-cover dcf-circle-at-md'
class: 'dcf-ratio-child dcf-obj-fit-cover'
weight: 11
region: content
n_major_featured_faculty:
Expand Down Expand Up @@ -274,6 +275,13 @@ content:
third_party_settings: { }
weight: 9
region: content
n_major_pathways:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 30
region: content
n_major_point_pride:
type: entity_reference_revisions_entity_view
label: hidden
Expand Down
2 changes: 2 additions & 0 deletions config/sync/core.entity_view_display.node.major.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ dependencies:
- field.field.node.major.n_major_notable_courses_intro
- field.field.node.major.n_major_otc_intro
- field.field.node.major.n_major_outside_the_classroom
- field.field.node.major.n_major_pathways
- field.field.node.major.n_major_point_pride
- field.field.node.major.n_major_program_features
- field.field.node.major.n_major_program_features_image
Expand Down Expand Up @@ -77,6 +78,7 @@ hidden:
n_major_notable_courses_intro: true
n_major_otc_intro: true
n_major_outside_the_classroom: true
n_major_pathways: true
n_major_point_pride: true
n_major_program_features: true
n_major_program_features_image: true
2 changes: 1 addition & 1 deletion config/sync/field.field.node.major.n_major_4year_link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ field_name: n_major_4year_link
entity_type: node
bundle: major
label: '4 Year Plan Link'
description: ''
description: 'Add links in alphabetical order of colleges (if a major with more than one college), as labels will be applied automatically.'
required: false
translatable: false
default_value: { }
Expand Down
25 changes: 25 additions & 0 deletions config/sync/field.field.node.major.n_major_pathways.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: fa70a9bf-2386-4c7a-98ae-29243dd00349
langcode: en
status: true
dependencies:
config:
- field.storage.node.n_major_pathways
- node.type.major
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
allowed_formats: { }
id: node.major.n_major_pathways
field_name: n_major_pathways
entity_type: node
bundle: major
label: Pathways
description: 'Enter text in alphabetical order of colleges, as labels will be applied automatically'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text_long
2 changes: 1 addition & 1 deletion config/sync/field.storage.node.n_major_4year_link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ settings:
is_ascii: false
module: core
locked: false
cardinality: 1
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
Expand Down
2 changes: 1 addition & 1 deletion config/sync/field.storage.node.n_major_college.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ settings:
allowed_values_function: ''
module: options
locked: false
cardinality: 1
cardinality: 3
translatable: true
indexes: { }
persist_with_no_fields: false
Expand Down
2 changes: 1 addition & 1 deletion config/sync/field.storage.node.n_major_contact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ settings:
target_type: paragraph
module: entity_reference_revisions
locked: false
cardinality: 2
cardinality: 3
translatable: true
indexes: { }
persist_with_no_fields: false
Expand Down
19 changes: 19 additions & 0 deletions config/sync/field.storage.node.n_major_pathways.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 6ea7bbe1-cebe-4059-9cca-e06bc09d3e91
langcode: en
status: true
dependencies:
module:
- node
- text
id: node.n_major_pathways
field_name: n_major_pathways
entity_type: node
type: text_long
settings: { }
module: text
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
- field.field.node.major.n_major_notable_courses_intro
- field.field.node.major.n_major_otc_intro
- field.field.node.major.n_major_outside_the_classroom
- field.field.node.major.n_major_pathways
- field.field.node.major.n_major_point_pride
- field.field.node.major.n_major_program_features
- field.field.node.major.n_major_program_features_image
Expand Down Expand Up @@ -67,7 +68,7 @@ third_party_settings:
label: Courses
region: content
parent_name: ''
weight: 12
weight: 13
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -87,7 +88,7 @@ third_party_settings:
label: 'Huskers Do Big Things'
region: content
parent_name: ''
weight: 13
weight: 14
format_type: fieldset
format_settings:
classes: ''
Expand All @@ -102,7 +103,7 @@ third_party_settings:
label: 'Program Features'
region: content
parent_name: ''
weight: 11
weight: 12
format_type: fieldset
format_settings:
classes: ''
Expand Down Expand Up @@ -186,15 +187,15 @@ content:
third_party_settings: { }
n_major_careers_list:
type: string_textfield
weight: 21
weight: 26
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
n_major_careers_title:
type: string_textfield
weight: 20
weight: 25
region: content
settings:
size: 60
Expand Down Expand Up @@ -268,15 +269,15 @@ content:
third_party_settings: { }
n_major_grad_schools_list:
type: string_textfield
weight: 19
weight: 24
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
n_major_grad_schools_title:
type: string_textfield
weight: 18
weight: 23
region: content
settings:
size: 60
Expand All @@ -300,23 +301,23 @@ content:
third_party_settings: { }
n_major_huskers_do_intro:
type: string_textarea
weight: 14
weight: 20
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
n_major_internships_list:
type: string_textfield
weight: 16
weight: 22
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
n_major_internships_title:
type: string_textfield
weight: 15
weight: 21
region: content
settings:
size: 60
Expand Down Expand Up @@ -377,7 +378,7 @@ content:
third_party_settings: { }
n_major_otc_intro:
type: string_textarea
weight: 14
weight: 15
region: content
settings:
rows: 5
Expand All @@ -402,6 +403,14 @@ content:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
n_major_pathways:
type: text_textarea
weight: 11
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
n_major_point_pride:
type: paragraphs
weight: 10
Expand Down
Loading

0 comments on commit 1ad5702

Please sign in to comment.