Skip to content

Commit

Permalink
Merge pull request #547 from City-of-Helsinki/UHF-X_enable_global_ann…
Browse files Browse the repository at this point in the history
…ouncement

UHF-X enable global announcement
  • Loading branch information
rpnykanen authored Mar 23, 2023
2 parents acf3852 + 41e7353 commit ea992d1
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 1 deletion.
20 changes: 20 additions & 0 deletions conf/cmi/block.block.globalannouncement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 3eab5984-fe5d-40bc-b767-f3f71999ab17
langcode: en
status: true
dependencies:
module:
- helfi_global_announcement
theme:
- hdbt_subtheme
id: globalannouncement
theme: hdbt_subtheme
region: before_content
weight: -14
provider: helfi_global_announcement
plugin: global_announcements
settings:
id: global_announcements
label: 'Global announcement'
label_display: ''
provider: helfi_global_announcement
visibility: { }
1 change: 1 addition & 0 deletions conf/cmi/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module:
helfi_base_content: 0
helfi_ckeditor: 0
helfi_eu_cookie_compliance: 0
helfi_global_announcement: 0
helfi_image_styles: 0
helfi_media: 0
helfi_media_chart: 0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
uuid: 4e6c21cf-cd1c-4a54-883f-8b43b2f49634
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: XBOd0Lfy5FpXJkeuZi75vBaT7ffFCENINrui5kCVygo
id: helfi_announcements
label: 'Helfi: Announcements'
label_plural: 'Helfi: Announcements'
description: ''
read_only: true
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
id:
value: $.id
uuid:
value: $.id
title:
value: '$.attributes["title"]'
published_at:
value: '$.attributes["published_at"]'
unpublish_on:
value: '$.attributes["unpublish_on"]'
notification:
value: '$.attributes["notification"]'
langcode:
value: '$.attributes["langcode"]'
body:
value: '$.attributes["body"]["value"]'
status:
value: '$.attributes["status"]'
announcement_type:
value: '$.attributes["field_announcement_type"]'
announcement_link_text:
value: '$.attributes["field_announcement_link"]["title"]'
announcement_link_url:
value: '$.attributes["field_announcement_link"]["uri"]'
storage_client_id: helfi_announcements
storage_client_config: { }
persistent_cache_max_age: 600
annotation_entity_type_id: null
annotation_bundle_id: null
annotation_field_name: null
inherits_annotation_fields: false
2 changes: 1 addition & 1 deletion public/sites/default/testing.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
'ru' => 'test-health-and-social-services',
];


$config['helfi_global_announcement.settings']['source_environment'] = 'test';

0 comments on commit ea992d1

Please sign in to comment.