Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic update #618

Merged
merged 17 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
6dc09dd
UHF-9739: Added 'news update' paragraph and it's configurations.
khalima May 3, 2024
41f5f3c
UHF-9739: Added config rewrites for the news items based on changes n…
khalima May 3, 2024
199c452
UHF-9739: Fixed configuration translation.
khalima May 3, 2024
b8fdc23
UHF-9739: Merge branch 'dev' of github.com:City-of-Helsinki/drupal-he…
teroelonen May 8, 2024
18e7515
UHF-9739: Merge branch 'dev' of github.com:City-of-Helsinki/drupal-he…
teroelonen May 13, 2024
0ed2753
UHF-9739: Hide the labels on updating news items, change the timestam…
teroelonen May 13, 2024
f30be77
UHF-9739: Moved the updating news templates from hdbt to hdbt_subtheme.
khalima May 16, 2024
d1f405d
UHF-9739: Moved the updating news related styles from hdbt to hdbt_su…
khalima May 16, 2024
4bb6fef
UHF-9739: Moved the updating news related translations from hdbt to h…
khalima May 16, 2024
b5ce78a
UHF-9739: Updated news update configurations.
khalima May 16, 2024
75ab6eb
UHF-9739: Added Updating news table of contents javascript.
khalima May 17, 2024
03ba93b
UHF-9739: Added dist.
khalima May 17, 2024
0e872cf
UHF-9739: Merge branch 'UHF-9739' of github.com:City-of-Helsinki/drup…
khalima May 17, 2024
bfd6f75
UHF-9739: Added configurations for updating news items.
khalima May 17, 2024
1193f3c
UHF-9739: Merge branch 'dev' of github.com:City-of-Helsinki/drupal-he…
khalima May 17, 2024
34de314
Update configuration
hel-platta-automation May 20, 2024
59da9bc
Merge pull request #608 from City-of-Helsinki/UHF-9739
khalima May 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 37 additions & 1 deletion conf/cmi/core.entity_form_display.node.news_item.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- field.field.node.news_item.field_news_item_links_link
- field.field.node.news_item.field_news_item_links_title
- field.field.node.news_item.field_news_item_tags
- field.field.node.news_item.field_news_item_updating_news
- field.field.node.news_item.field_news_neighbourhoods
- field.field.node.news_item.field_radioactivity
- field.field.node.news_item.field_short_title
Expand Down Expand Up @@ -76,8 +77,23 @@ third_party_settings:
open: false
description: ''
required_fields: true
group_updating_news:
children:
- field_news_item_updating_news
label: 'Updating news'
region: content
parent_name: ''
weight: 17
format_type: details
format_settings:
classes: ''
show_empty_fields: true
id: ''
open: false
description: "Leave the content region above the updating news blank if you are creating an updating news.<br />\r\nAdd the latest news update at the end. The system will display updates on the page in reverse order."
required_fields: false
_core:
default_config_hash: RHDFf9pvwgV2FvoelXlH7dXXBoWkziCZI1FWuQS94k8
default_config_hash: dW1Kmx2dOCHZosI85sWLQGupPRXvS8NL-lmM_O44boc
id: node.news_item.default
targetEntityType: node
bundle: news_item
Expand Down Expand Up @@ -179,6 +195,26 @@ content:
match_operator: CONTAINS
match_limit: 10
third_party_settings: { }
field_news_item_updating_news:
type: paragraphs
weight: 17
region: content
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: _none
features:
add_above: '0'
collapse_edit_all: '0'
convert: '0'
duplicate: '0'
third_party_settings: { }
field_news_neighbourhoods:
type: select2_entity_reference
weight: 27
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
uuid: 01df54cb-c5ac-4cab-bd27-787f2bdc93b1
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.news_update.field_news_update
- field.field.paragraph.news_update.field_news_update_date
- field.field.paragraph.news_update.field_news_update_title
- paragraphs.paragraphs_type.news_update
module:
- datetime
- paragraphs
_core:
default_config_hash: XYIUl3_cuml3-BGICqIzW8RWixphDQihgi01ZCJMBig
id: paragraph.news_update.default
targetEntityType: paragraph
bundle: news_update
mode: default
content:
field_news_update:
type: paragraphs
weight: 2
region: content
settings:
title: Paragraph
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: text
features:
add_above: '0'
collapse_edit_all: collapse_edit_all
convert: '0'
duplicate: duplicate
third_party_settings: { }
field_news_update_date:
type: datetime_default
weight: 1
region: content
settings: { }
third_party_settings: { }
field_news_update_title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies:
- field.field.node.news_item.field_news_item_links_link
- field.field.node.news_item.field_news_item_links_title
- field.field.node.news_item.field_news_item_tags
- field.field.node.news_item.field_news_item_updating_news
- field.field.node.news_item.field_news_neighbourhoods
- field.field.node.news_item.field_radioactivity
- field.field.node.news_item.field_short_title
Expand All @@ -22,7 +23,7 @@ dependencies:
- media
- user
_core:
default_config_hash: rw0HQtg75-HvNXykEGQqCuDsOe_-6GcUpKGnrZVOnSs
default_config_hash: Mr1QBPHLSABqi-fUL-8TBc8xRHxfVs5cf0QbTjXomDc
id: node.news_item.card_teaser
targetEntityType: node
bundle: news_item
Expand Down Expand Up @@ -85,6 +86,7 @@ hidden:
field_news_groups: true
field_news_item_links_link: true
field_news_item_tags: true
field_news_item_updating_news: true
field_news_neighbourhoods: true
field_radioactivity: true
langcode: true
Expand Down
12 changes: 11 additions & 1 deletion conf/cmi/core.entity_view_display.node.news_item.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- field.field.node.news_item.field_news_item_links_link
- field.field.node.news_item.field_news_item_links_title
- field.field.node.news_item.field_news_item_tags
- field.field.node.news_item.field_news_item_updating_news
- field.field.node.news_item.field_news_neighbourhoods
- field.field.node.news_item.field_radioactivity
- field.field.node.news_item.field_short_title
Expand All @@ -23,7 +24,7 @@ dependencies:
- radioactivity
- user
_core:
default_config_hash: fHNnwg186A981K7d578If1MCkuYBmQqaxabpDSAZwIc
default_config_hash: SfHQKCP8IzTidLziyYN4o4WUK7vzqFrvkFtTa01dQYE
id: node.news_item.default
targetEntityType: node
bundle: news_item
Expand Down Expand Up @@ -97,6 +98,15 @@ content:
third_party_settings: { }
weight: 11
region: content
field_news_item_updating_news:
type: entity_reference_revisions_entity_view
label: hidden
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 13
region: content
field_news_neighbourhoods:
type: entity_reference_label
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ dependencies:
- field.field.node.news_item.field_news_item_links_link
- field.field.node.news_item.field_news_item_links_title
- field.field.node.news_item.field_news_item_tags
- field.field.node.news_item.field_news_item_updating_news
- field.field.node.news_item.field_news_neighbourhoods
- field.field.node.news_item.field_radioactivity
- field.field.node.news_item.field_short_title
- node.type.news_item
module:
- user
_core:
default_config_hash: iOyy_v6RDb2ia9ioF-Q-IJqILz-pPRMc9MgQTbvggIM
default_config_hash: fjYLz2RVZIouftKpPNS0o-JnsSAxBe8YiUDps3NbhSg
id: node.news_item.medium_teaser
targetEntityType: node
bundle: news_item
Expand Down Expand Up @@ -75,6 +76,7 @@ hidden:
field_news_groups: true
field_news_item_links_link: true
field_news_item_tags: true
field_news_item_updating_news: true
field_news_neighbourhoods: true
field_radioactivity: true
langcode: true
Expand Down
Loading