-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #363 from City-of-Helsinki/UHF-7195_news_feed
UHF-7195 News feed
- Loading branch information
Showing
41 changed files
with
761 additions
and
12 deletions.
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
conf/cmi/core.entity_form_display.paragraph.news_list.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
uuid: 7df1901f-3c86-41a6-a63c-007d317f6c62 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.news_list.field_helfi_news_groups | ||
- field.field.paragraph.news_list.field_helfi_news_neighbourhoods | ||
- field.field.paragraph.news_list.field_helfi_news_tags | ||
- field.field.paragraph.news_list.field_limit | ||
- field.field.paragraph.news_list.field_news_list_description | ||
- field.field.paragraph.news_list.field_news_list_title | ||
- paragraphs.paragraphs_type.news_list | ||
module: | ||
- select2 | ||
- text | ||
_core: | ||
default_config_hash: I_u6U4oQKvo0EjopuKoM3qEFFz3lzE8J-jWIN0OJqYg | ||
id: paragraph.news_list.default | ||
targetEntityType: paragraph | ||
bundle: news_list | ||
mode: default | ||
content: | ||
field_helfi_news_groups: | ||
type: select2_entity_reference | ||
weight: 4 | ||
region: content | ||
settings: | ||
width: 100% | ||
autocomplete: true | ||
match_operator: CONTAINS | ||
match_limit: 10 | ||
third_party_settings: { } | ||
field_helfi_news_neighbourhoods: | ||
type: select2_entity_reference | ||
weight: 5 | ||
region: content | ||
settings: | ||
width: 100% | ||
autocomplete: true | ||
match_operator: CONTAINS | ||
match_limit: 10 | ||
third_party_settings: { } | ||
field_helfi_news_tags: | ||
type: select2_entity_reference | ||
weight: 3 | ||
region: content | ||
settings: | ||
width: 100% | ||
autocomplete: true | ||
match_operator: CONTAINS | ||
match_limit: 10 | ||
third_party_settings: { } | ||
field_limit: | ||
type: number | ||
weight: 2 | ||
region: content | ||
settings: | ||
placeholder: '' | ||
third_party_settings: { } | ||
field_news_list_description: | ||
type: text_textarea | ||
weight: 1 | ||
region: content | ||
settings: | ||
rows: 5 | ||
placeholder: '' | ||
third_party_settings: { } | ||
field_news_list_title: | ||
type: string_textfield | ||
weight: 0 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
status: true |
38 changes: 38 additions & 0 deletions
38
conf/cmi/core.entity_view_display.helfi_news.helfi_news.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
uuid: 329d2e65-7a59-488a-84b2-0ebb7b1bc7c0 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- external_entities | ||
- imagecache_external | ||
_core: | ||
default_config_hash: k-bIvgFdaVICd0s60Gng2zWabkpeZTQ53HF1Eff7zDk | ||
id: helfi_news.helfi_news.default | ||
targetEntityType: helfi_news | ||
bundle: helfi_news | ||
mode: default | ||
content: | ||
main_image: | ||
type: imagecache_external_responsive_image | ||
label: hidden | ||
settings: | ||
imagecache_external_responsive_style: gallery_thumbnail | ||
imagecache_external_link: '' | ||
third_party_settings: { } | ||
weight: 1 | ||
region: content | ||
title: | ||
type: string | ||
label: hidden | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
groups: true | ||
neighbourhoods: true | ||
node_url: true | ||
published_at: true | ||
short_title: true | ||
tags: true |
40 changes: 40 additions & 0 deletions
40
conf/cmi/core.entity_view_display.helfi_news.helfi_news.medium_teaser.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
uuid: 3b524002-16df-4f5b-87fd-ce8103a92cc3 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_view_mode.helfi_news.medium_teaser | ||
module: | ||
- external_entities | ||
- imagecache_external | ||
_core: | ||
default_config_hash: XArB74ImuiEIsNGh_ic_b4csmzDUre1hUeswj9kCiOc | ||
id: helfi_news.helfi_news.medium_teaser | ||
targetEntityType: helfi_news | ||
bundle: helfi_news | ||
mode: medium_teaser | ||
content: | ||
main_image: | ||
type: imagecache_external_responsive_image | ||
label: hidden | ||
settings: | ||
imagecache_external_responsive_style: gallery_thumbnail | ||
imagecache_external_link: '' | ||
third_party_settings: { } | ||
weight: 1 | ||
region: content | ||
title: | ||
type: string | ||
label: hidden | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
groups: true | ||
neighbourhoods: true | ||
node_url: true | ||
published_at: true | ||
short_title: true | ||
tags: true |
70 changes: 70 additions & 0 deletions
70
conf/cmi/core.entity_view_display.paragraph.news_list.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
uuid: ef83b857-16d7-4f2b-93d2-b4d9c1e1d5ab | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.news_list.field_helfi_news_groups | ||
- field.field.paragraph.news_list.field_helfi_news_neighbourhoods | ||
- field.field.paragraph.news_list.field_helfi_news_tags | ||
- field.field.paragraph.news_list.field_limit | ||
- field.field.paragraph.news_list.field_news_list_description | ||
- field.field.paragraph.news_list.field_news_list_title | ||
- paragraphs.paragraphs_type.news_list | ||
module: | ||
- text | ||
_core: | ||
default_config_hash: eCdT_XU1aIhxOLfurTn16KTFSsxHyWZu3HHm3q_5Mi8 | ||
id: paragraph.news_list.default | ||
targetEntityType: paragraph | ||
bundle: news_list | ||
mode: default | ||
content: | ||
field_helfi_news_groups: | ||
type: entity_reference_entity_view | ||
label: above | ||
settings: | ||
view_mode: default | ||
link: true | ||
third_party_settings: { } | ||
weight: 3 | ||
region: content | ||
field_helfi_news_neighbourhoods: | ||
type: entity_reference_entity_view | ||
label: above | ||
settings: | ||
view_mode: default | ||
link: true | ||
third_party_settings: { } | ||
weight: 5 | ||
region: content | ||
field_helfi_news_tags: | ||
type: entity_reference_entity_view | ||
label: above | ||
settings: | ||
view_mode: default | ||
link: true | ||
third_party_settings: { } | ||
weight: 4 | ||
region: content | ||
field_news_list_description: | ||
type: text_default | ||
label: hidden | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 1 | ||
region: content | ||
field_news_list_title: | ||
type: string | ||
label: hidden | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
news_list: | ||
settings: { } | ||
third_party_settings: { } | ||
weight: 2 | ||
region: content | ||
hidden: | ||
field_limit: true |
12 changes: 12 additions & 0 deletions
12
conf/cmi/core.entity_view_mode.helfi_news.medium_teaser.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
uuid: 7aae4199-2b1c-4d4f-8168-190a37a3c85e | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- external_entities | ||
_core: | ||
default_config_hash: q8QZDYrGHAdl67dw9Z1DdTCTIhOo3lpW0dGN70STnCk | ||
id: helfi_news.medium_teaser | ||
label: 'Medium Teaser' | ||
targetEntityType: helfi_news | ||
cache: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
conf/cmi/external_entities.external_entity_type.helfi_news.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
uuid: a59907e9-8dfe-482c-a091-df1469e35bd4 | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
_core: | ||
default_config_hash: BzWvGC8hEXxFUxhZtUxQ30sNFcsZNIAFC5JX9okISYY | ||
id: helfi_news | ||
label: 'Helfi: News' | ||
label_plural: 'Helfi: News' | ||
description: '' | ||
read_only: true | ||
field_mapper_id: jsonpath | ||
field_mapper_config: | ||
field_mappings: | ||
id: | ||
value: $.id | ||
uuid: | ||
value: $.id | ||
title: | ||
value: '$.attributes[''title'']' | ||
main_image: | ||
uri: '$.relationships[''main_image''][''data''][''relationships''][''media_image''][''data''][''attributes''][''uri''][''url'']' | ||
title: '$.relationships[''main_image''][''data''][''relationships''][''media_image''][''data''][''meta''][''alt'']' | ||
tags: | ||
value: '$.relationships[''tags''][''data''][*][''attributes''][''name'']' | ||
groups: | ||
value: '$.relationships[''groups''][''data''][*][''attributes''][''name'']' | ||
neighbourhoods: | ||
value: '$.relationships[''neighbourhoods''][''data''][*][''attributes''][''name'']' | ||
node_url: | ||
value: '$.attributes[''path''][''alias'']' | ||
published_at: | ||
value: '$.attributes[''published_at'']' | ||
short_title: | ||
value: '$.attributes[''short_title'']' | ||
storage_client_id: helfi_news | ||
storage_client_config: { } | ||
persistent_cache_max_age: -1 | ||
annotation_entity_type_id: null | ||
annotation_bundle_id: null | ||
annotation_field_name: null | ||
inherits_annotation_fields: false |
27 changes: 27 additions & 0 deletions
27
conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
uuid: 56fd142f-ec0a-4fed-a7f0-1b9ceb68fa86 | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
_core: | ||
default_config_hash: XSm-lbRmOWP_eJRFTo14HMiNtxsc5scm42lmq8Qjcy8 | ||
id: helfi_news_groups | ||
label: 'Helfi: News groups' | ||
label_plural: 'Helfi: News groups' | ||
description: 'Retrieves news groups taxonomy terms from Helfi' | ||
read_only: true | ||
field_mapper_id: jsonpath | ||
field_mapper_config: | ||
field_mappings: | ||
id: | ||
value: $.id | ||
uuid: | ||
value: $.id | ||
title: | ||
value: '$.attributes["name"]' | ||
storage_client_id: helfi_news_groups | ||
storage_client_config: { } | ||
persistent_cache_max_age: -1 | ||
annotation_entity_type_id: null | ||
annotation_bundle_id: null | ||
annotation_field_name: null | ||
inherits_annotation_fields: false |
27 changes: 27 additions & 0 deletions
27
conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
uuid: 2b6debc8-d0d4-4619-9643-afced4bc4aa2 | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
_core: | ||
default_config_hash: h4y6pjlsSfKM9cgEi9tWGsJ57_zj1b4CelECji9A1Y0 | ||
id: helfi_news_neighbourhoods | ||
label: 'Helfi: News neighbourhoods' | ||
label_plural: 'Helfi: News neighbourhoods' | ||
description: 'Retrieves news neighbourhoods taxonomy terms from Helfi' | ||
read_only: true | ||
field_mapper_id: jsonpath | ||
field_mapper_config: | ||
field_mappings: | ||
id: | ||
value: $.id | ||
uuid: | ||
value: $.id | ||
title: | ||
value: '$.attributes["name"]' | ||
storage_client_id: helfi_news_neighbourhoods | ||
storage_client_config: { } | ||
persistent_cache_max_age: -1 | ||
annotation_entity_type_id: null | ||
annotation_bundle_id: null | ||
annotation_field_name: null | ||
inherits_annotation_fields: false |
27 changes: 27 additions & 0 deletions
27
conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
uuid: 4e92ee4b-afff-46b0-87ad-b588041894cf | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
_core: | ||
default_config_hash: wkWXjXpGr6lPWM3nZ-8RqlBCt7nsAuHiP7EC1Vh4oMc | ||
id: helfi_news_tags | ||
label: 'Helfi: News tags' | ||
label_plural: 'Helfi: News tags' | ||
description: 'Retrieves news tags taxonomy terms from Helfi' | ||
read_only: true | ||
field_mapper_id: jsonpath | ||
field_mapper_config: | ||
field_mappings: | ||
id: | ||
value: $.id | ||
uuid: | ||
value: $.id | ||
title: | ||
value: '$.attributes["name"]' | ||
storage_client_id: helfi_news_tags | ||
storage_client_config: { } | ||
persistent_cache_max_age: -1 | ||
annotation_entity_type_id: null | ||
annotation_bundle_id: null | ||
annotation_field_name: null | ||
inherits_annotation_fields: false |
Oops, something went wrong.