Skip to content

Commit d9c59d8

Browse files
authored
Merge pull request #55 from ASUWebPlatforms/ws2-1221
Ws2 1221
2 parents 2abf9e6 + efc12a1 commit d9c59d8

6 files changed

+97
-26
lines changed

config/install/core.entity_form_display.node.degree_detail_page.default.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- field.field.node.degree_detail_page.field_deg_dtl_anchor_online
1515
- field.field.node.degree_detail_page.field_deg_dtl_anchor_outlook
1616
- field.field.node.degree_detail_page.field_deg_dtl_anchor_pgm_contact
17+
- field.field.node.degree_detail_page.field_deg_dtl_anchor_why_choose
1718
- field.field.node.degree_detail_page.field_deg_dtl_attend_online_img
1819
- field.field.node.degree_detail_page.field_deg_dtl_hide_affording
1920
- field.field.node.degree_detail_page.field_deg_dtl_hide_app_reqs
@@ -130,21 +131,23 @@ third_party_settings:
130131
- field_deg_dtl_anchor_next_steps
131132
- field_deg_dtl_anchor_afford_col
132133
- field_deg_dtl_anchor_outlook
134+
- field_deg_dtl_anchor_why_choose
133135
- field_deg_dtl_anchor_example_crs
134136
- field_deg_dtl_anchor_customize
135137
- field_deg_dtl_anchor_global_opp
136138
- field_deg_dtl_anchor_online
137139
- field_deg_dtl_anchor_pgm_contact
138140
- field_deg_dtl_anchor_addl_anchor
139-
label: 'Anchor menu'
141+
label: 'Show in anchor menu'
140142
region: content
141143
parent_name: ''
142144
weight: 16
143145
format_type: fieldset
144146
format_settings:
145147
classes: ''
148+
show_empty_fields: false
146149
id: ''
147-
description: ''
150+
description: 'Add direct link to selected sections in an anchor menu.'
148151
required_fields: true
149152
group_hide_degree_fields:
150153
children:
@@ -159,7 +162,7 @@ third_party_settings:
159162
- field_deg_dtl_hide_global_opp
160163
- field_deg_dtl_hide_why_choos_asu
161164
- field_deg_dtl_hide_attend_online
162-
label: 'Hide Degree Fields'
165+
label: 'Hide Degree page sections'
163166
region: content
164167
parent_name: ''
165168
weight: 17
@@ -168,7 +171,7 @@ third_party_settings:
168171
classes: hide-degree-fields
169172
show_empty_fields: true
170173
id: ''
171-
description: 'Select fields to not display on individual degree detail pages.'
174+
description: 'Select sections of content to not display on individual degree detail pages.'
172175
required_fields: true
173176
group_degrees_why_choose_asu:
174177
children:
@@ -242,14 +245,14 @@ content:
242245
third_party_settings: { }
243246
field_deg_dtl_anchor_customize:
244247
type: boolean_checkbox
245-
weight: 24
248+
weight: 25
246249
region: content
247250
settings:
248251
display_label: true
249252
third_party_settings: { }
250253
field_deg_dtl_anchor_example_crs:
251254
type: boolean_checkbox
252-
weight: 23
255+
weight: 24
253256
region: content
254257
settings:
255258
display_label: true
@@ -263,7 +266,7 @@ content:
263266
third_party_settings: { }
264267
field_deg_dtl_anchor_global_opp:
265268
type: boolean_checkbox
266-
weight: 25
269+
weight: 26
267270
region: content
268271
settings:
269272
display_label: true
@@ -277,7 +280,7 @@ content:
277280
third_party_settings: { }
278281
field_deg_dtl_anchor_online:
279282
type: boolean_checkbox
280-
weight: 26
283+
weight: 27
281284
region: content
282285
settings:
283286
display_label: true
@@ -296,6 +299,13 @@ content:
296299
settings:
297300
display_label: true
298301
third_party_settings: { }
302+
field_deg_dtl_anchor_why_choose:
303+
type: boolean_checkbox
304+
weight: 23
305+
region: content
306+
settings:
307+
display_label: true
308+
third_party_settings: { }
299309
field_deg_dtl_attend_online_img:
300310
type: media_library_widget
301311
weight: 14
@@ -559,6 +569,11 @@ content:
559569
settings:
560570
display_label: true
561571
third_party_settings: { }
572+
simple_sitemap:
573+
weight: 18
574+
region: content
575+
settings: { }
576+
third_party_settings: { }
562577
status:
563578
type: boolean_checkbox
564579
weight: 5

config/install/core.entity_view_display.node.degree_detail_page.default.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- field.field.node.degree_detail_page.field_deg_dtl_anchor_online
1515
- field.field.node.degree_detail_page.field_deg_dtl_anchor_outlook
1616
- field.field.node.degree_detail_page.field_deg_dtl_anchor_pgm_contact
17+
- field.field.node.degree_detail_page.field_deg_dtl_anchor_why_choose
1718
- field.field.node.degree_detail_page.field_deg_dtl_attend_online_img
1819
- field.field.node.degree_detail_page.field_deg_dtl_hide_affording
1920
- field.field.node.degree_detail_page.field_deg_dtl_hide_app_reqs
@@ -26,6 +27,9 @@ dependencies:
2627
- field.field.node.degree_detail_page.field_deg_dtl_intro_hide_market
2728
- field.field.node.degree_detail_page.field_deg_dtl_intro_hide_pgmdesc
2829
- field.field.node.degree_detail_page.field_deg_dtl_intro_hide_req_crs
30+
- field.field.node.degree_detail_page.field_deg_dtl_why_choose_1
31+
- field.field.node.degree_detail_page.field_deg_dtl_why_choose_2
32+
- field.field.node.degree_detail_page.field_deg_dtl_why_choose_intro
2933
- field.field.node.degree_detail_page.field_degree_detail_acadplancode
3034
- field.field.node.degree_detail_page.field_degree_detail_breadcrumbs
3135
- field.field.node.degree_detail_page.field_degree_detail_email_link
@@ -110,9 +114,9 @@ third_party_settings:
110114
allowed_block_categories: { }
111115
entity_view_mode_restriction:
112116
allowed_layouts: { }
117+
restricted_categories: { }
113118
blacklisted_blocks: { }
114119
whitelisted_blocks: { }
115-
restricted_categories: { }
116120
id: node.degree_detail_page.default
117121
targetEntityType: node
118122
bundle: degree_detail_page
@@ -240,6 +244,16 @@ content:
240244
third_party_settings: { }
241245
weight: 134
242246
region: content
247+
field_deg_dtl_anchor_why_choose:
248+
type: boolean
249+
label: above
250+
settings:
251+
format: default
252+
format_custom_false: ''
253+
format_custom_true: ''
254+
third_party_settings: { }
255+
weight: 153
256+
region: content
243257
field_deg_dtl_attend_online_img:
244258
type: entity_reference_entity_view
245259
label: above
@@ -523,4 +537,7 @@ content:
523537
weight: 100
524538
region: content
525539
hidden:
540+
field_deg_dtl_why_choose_1: true
541+
field_deg_dtl_why_choose_2: true
542+
field_deg_dtl_why_choose_intro: true
526543
layout_builder__layout: true

config/install/core.entity_view_display.node.degree_detail_page.teaser.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- field.field.node.degree_detail_page.field_deg_dtl_anchor_online
1616
- field.field.node.degree_detail_page.field_deg_dtl_anchor_outlook
1717
- field.field.node.degree_detail_page.field_deg_dtl_anchor_pgm_contact
18+
- field.field.node.degree_detail_page.field_deg_dtl_anchor_why_choose
1819
- field.field.node.degree_detail_page.field_deg_dtl_attend_online_img
1920
- field.field.node.degree_detail_page.field_deg_dtl_hide_affording
2021
- field.field.node.degree_detail_page.field_deg_dtl_hide_app_reqs
@@ -27,6 +28,9 @@ dependencies:
2728
- field.field.node.degree_detail_page.field_deg_dtl_intro_hide_market
2829
- field.field.node.degree_detail_page.field_deg_dtl_intro_hide_pgmdesc
2930
- field.field.node.degree_detail_page.field_deg_dtl_intro_hide_req_crs
31+
- field.field.node.degree_detail_page.field_deg_dtl_why_choose_1
32+
- field.field.node.degree_detail_page.field_deg_dtl_why_choose_2
33+
- field.field.node.degree_detail_page.field_deg_dtl_why_choose_intro
3034
- field.field.node.degree_detail_page.field_degree_detail_acadplancode
3135
- field.field.node.degree_detail_page.field_degree_detail_breadcrumbs
3236
- field.field.node.degree_detail_page.field_degree_detail_email_link
@@ -57,16 +61,6 @@ targetEntityType: node
5761
bundle: degree_detail_page
5862
mode: teaser
5963
content:
60-
field_deg_dtl_hide_why_choos_asu:
61-
type: boolean
62-
label: above
63-
settings:
64-
format: default
65-
format_custom_false: ''
66-
format_custom_true: ''
67-
third_party_settings: { }
68-
weight: 40
69-
region: content
7064
links:
7165
settings: { }
7266
third_party_settings: { }
@@ -85,6 +79,7 @@ hidden:
8579
field_deg_dtl_anchor_online: true
8680
field_deg_dtl_anchor_outlook: true
8781
field_deg_dtl_anchor_pgm_contact: true
82+
field_deg_dtl_anchor_why_choose: true
8883
field_deg_dtl_attend_online_img: true
8984
field_deg_dtl_hide_affording: true
9085
field_deg_dtl_hide_app_reqs: true
@@ -93,9 +88,13 @@ hidden:
9388
field_deg_dtl_hide_example_crs: true
9489
field_deg_dtl_hide_flex_options: true
9590
field_deg_dtl_hide_global_opp: true
91+
field_deg_dtl_hide_why_choos_asu: true
9692
field_deg_dtl_intro_hide_market: true
9793
field_deg_dtl_intro_hide_pgmdesc: true
9894
field_deg_dtl_intro_hide_req_crs: true
95+
field_deg_dtl_why_choose_1: true
96+
field_deg_dtl_why_choose_2: true
97+
field_deg_dtl_why_choose_intro: true
9998
field_degree_detail_acadplancode: true
10099
field_degree_detail_breadcrumbs: true
101100
field_degree_detail_email_link: true
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
langcode: en
2+
status: true
3+
dependencies:
4+
config:
5+
- field.storage.node.field_deg_dtl_anchor_why_choose
6+
- node.type.degree_detail_page
7+
id: node.degree_detail_page.field_deg_dtl_anchor_why_choose
8+
field_name: field_deg_dtl_anchor_why_choose
9+
entity_type: node
10+
bundle: degree_detail_page
11+
label: 'Why Choose ASU'
12+
description: ''
13+
required: false
14+
translatable: false
15+
default_value:
16+
-
17+
value: 0
18+
default_value_callback: ''
19+
settings:
20+
on_label: 'On'
21+
off_label: 'Off'
22+
field_type: boolean
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
langcode: en
2+
status: true
3+
dependencies:
4+
module:
5+
- node
6+
id: node.field_deg_dtl_anchor_why_choose
7+
field_name: field_deg_dtl_anchor_why_choose
8+
entity_type: node
9+
type: boolean
10+
settings: { }
11+
module: core
12+
locked: false
13+
cardinality: 1
14+
translatable: true
15+
indexes: { }
16+
persist_with_no_fields: false
17+
custom_storage: false

src/Plugin/Block/AsuDegreeRfiDegreeDetailsBlock.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,17 +319,18 @@ public function build() {
319319

320320
//Anchor menu
321321
$anchor_menu_fields = [
322-
'affordingCollege' => 'field_deg_dtl_anchor_afford_col',
323-
'applicationRequirements' => 'field_deg_dtl_anchor_app_reqs',
324322
'atAGlance' => 'field_deg_dtl_anchor_glance',
325-
'attendOnline' => 'field_deg_dtl_anchor_online',
326-
'careerOutlook' => 'field_deg_dtl_anchor_outlook',
323+
'applicationRequirements' => 'field_deg_dtl_anchor_app_reqs',
327324
'changeMajorRequirements' => 'field_deg_dtl_anchor_change_mjr',
325+
'nextSteps' => 'field_deg_dtl_anchor_next_steps',
326+
'affordingCollege' => 'field_deg_dtl_anchor_afford_col',
327+
'careerOutlook' => 'field_deg_dtl_anchor_outlook',
328328
'customizeYourCollegeExperience' => 'field_deg_dtl_anchor_customize',
329-
'globalOpportunity' => 'field_deg_dtl_anchor_global_opp',
330329
'exampleCareers' => 'field_deg_dtl_anchor_example_crs',
330+
'globalOpportunity' => 'field_deg_dtl_anchor_global_opp',
331+
'whyChooseAsu' => 'field_deg_dtl_anchor_why_choose',
332+
'attendOnline' => 'field_deg_dtl_anchor_online',
331333
'programContactInfo' => 'field_deg_dtl_anchor_pgm_contact',
332-
'nextSteps' => 'field_deg_dtl_anchor_next_steps',
333334
];
334335
$anchorMenu = new \stdClass;
335336
foreach ($anchor_menu_fields as $key => $field) {
@@ -354,7 +355,7 @@ public function build() {
354355

355356
$props['anchorMenu'] = $anchorMenu;
356357

357-
// other hiding fields
358+
// Other "hide me" boolean fields
358359
$hide_fields = [
359360
'affordingCollege' => 'field_deg_dtl_hide_affording',
360361
'applicationRequirements' => 'field_deg_dtl_hide_app_reqs',

0 commit comments

Comments
 (0)