Skip to content

Commit dc5ea51

Browse files
authored
Merge pull request #1079 from City-of-Helsinki/UHF-11656
UHF-11656: Added number highlights paragraph to district and project pages
2 parents 6885a71 + beba065 commit dc5ea51

5 files changed

Lines changed: 25 additions & 0 deletions

File tree

conf/cmi/field.field.node.district.field_content.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
- paragraphs.paragraphs_type.list_of_links
1717
- paragraphs.paragraphs_type.map
1818
- paragraphs.paragraphs_type.news_list
19+
- paragraphs.paragraphs_type.number_highlights
1920
- paragraphs.paragraphs_type.project_listing
2021
- paragraphs.paragraphs_type.remote_video
2122
- paragraphs.paragraphs_type.text
@@ -49,6 +50,7 @@ settings:
4950
map: map
5051
project_listing: project_listing
5152
image_gallery: image_gallery
53+
number_highlights: number_highlights
5254
negate: 0
5355
target_bundles_drag_drop:
5456
accordion:
@@ -84,6 +86,9 @@ settings:
8486
news_list:
8587
weight: 15
8688
enabled: true
89+
number_highlights:
90+
weight: 18
91+
enabled: true
8792
project_listing:
8893
weight: 16
8994
enabled: true

conf/cmi/field.field.node.district.field_lower_content.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dependencies:
66
- field.storage.node.field_lower_content
77
- node.type.district
88
- paragraphs.paragraphs_type.list_of_links
9+
- paragraphs.paragraphs_type.number_highlights
910
module:
1011
- entity_reference_revisions
1112
id: node.district.field_lower_content
@@ -23,6 +24,7 @@ settings:
2324
handler_settings:
2425
target_bundles:
2526
list_of_links: list_of_links
27+
number_highlights: number_highlights
2628
negate: 0
2729
target_bundles_drag_drop:
2830
accordion:
@@ -91,6 +93,9 @@ settings:
9193
news_list:
9294
weight: -54
9395
enabled: false
96+
number_highlights:
97+
weight: 17
98+
enabled: true
9499
phasing:
95100
weight: -43
96101
enabled: false

conf/cmi/field.field.node.project.field_content.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- paragraphs.paragraphs_type.image
1515
- paragraphs.paragraphs_type.list_of_links
1616
- paragraphs.paragraphs_type.map
17+
- paragraphs.paragraphs_type.number_highlights
1718
- paragraphs.paragraphs_type.phasing
1819
- paragraphs.paragraphs_type.remote_video
1920
- paragraphs.paragraphs_type.text
@@ -45,6 +46,7 @@ settings:
4546
contact_card_listing: contact_card_listing
4647
map: map
4748
phasing: phasing
49+
number_highlights: number_highlights
4850
negate: 0
4951
target_bundles_drag_drop:
5052
accordion:
@@ -74,6 +76,9 @@ settings:
7476
map:
7577
weight: 9
7678
enabled: true
79+
number_highlights:
80+
weight: 11
81+
enabled: true
7782
phasing:
7883
weight: 7
7984
enabled: true

public/modules/custom/helfi_kymp_content/helfi_kymp_content.info.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ package: HELfi
88
dependencies:
99
- search_api:search_api
1010
- helfi_platform_config:helfi_paragraphs_image_gallery
11+
- helfi_platform_config:helfi_paragraphs_number_highlights

public/modules/custom/helfi_kymp_content/helfi_kymp_content.module

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,15 @@ function helfi_kymp_content_helfi_paragraph_types() : array {
320320
'district' => [
321321
'field_content' => [
322322
'image_gallery' => 17,
323+
'number_highlights' => 18,
324+
],
325+
'field_lower_content' => [
326+
'number_highlights' => 17,
327+
],
328+
],
329+
'project' => [
330+
'field_content' => [
331+
'number_highlights' => 11,
323332
],
324333
],
325334
],

0 commit comments

Comments
 (0)