From 9a9092ee574f3974cd7541dbe6d78920172f82cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 14 Mar 2024 12:12:40 +0200 Subject: [PATCH 1/2] UHF-9755: Added helfi_etusivu_config module and enabled it. Converted helfi_etusivu specific customizations to use the rewrite-module. --- conf/cmi/core.extension.yml | 1 + .../paragraphs.paragraphs_type.accordion.yml | 1 + .../fi/paragraphs.paragraphs_type.banner.yml | 1 + .../fi/paragraphs.paragraphs_type.image.yml | 1 + ...ragraphs.paragraphs_type.list_of_links.yml | 1 + ...raphs.paragraphs_type.popular_services.yml | 1 + ...aragraphs.paragraphs_type.remote_video.yml | 1 + ...aragraphs.paragraphs_type.sidebar_text.yml | 1 + .../fi/paragraphs.paragraphs_type.text.yml | 1 + .../paragraphs.paragraphs_type.accordion.yml | 1 + .../sv/paragraphs.paragraphs_type.banner.yml | 1 + .../sv/paragraphs.paragraphs_type.image.yml | 1 + ...ragraphs.paragraphs_type.list_of_links.yml | 1 + ...raphs.paragraphs_type.popular_services.yml | 1 + ...aragraphs.paragraphs_type.remote_video.yml | 1 + ...aragraphs.paragraphs_type.sidebar_text.yml | 1 + .../sv/paragraphs.paragraphs_type.text.yml | 1 + .../paragraphs.paragraphs_type.accordion.yml | 1 + .../paragraphs.paragraphs_type.banner.yml | 1 + .../paragraphs.paragraphs_type.image.yml | 1 + ...ragraphs.paragraphs_type.list_of_links.yml | 1 + ...raphs.paragraphs_type.popular_services.yml | 1 + ...aragraphs.paragraphs_type.remote_video.yml | 1 + ...aragraphs.paragraphs_type.sidebar_text.yml | 1 + .../paragraphs.paragraphs_type.text.yml | 1 + .../helfi_etusivu_config.info.yml | 5 +++ .../helfi_etusivu_config.module | 31 +++++++++++++++++++ 27 files changed, 61 insertions(+) create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.accordion.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.banner.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.image.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.list_of_links.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.popular_services.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.remote_video.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.sidebar_text.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.text.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.accordion.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.banner.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.image.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.list_of_links.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.popular_services.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.remote_video.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.sidebar_text.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.text.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.accordion.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.banner.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.image.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.list_of_links.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.popular_services.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.remote_video.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.sidebar_text.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.text.yml create mode 100644 public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.info.yml create mode 100644 public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.module diff --git a/conf/cmi/core.extension.yml b/conf/cmi/core.extension.yml index 854b3043b..60374a8da 100644 --- a/conf/cmi/core.extension.yml +++ b/conf/cmi/core.extension.yml @@ -49,6 +49,7 @@ module: helfi_base_content: 0 helfi_ckeditor: 0 helfi_etusivu: 0 + helfi_etusivu_config: 0 helfi_eu_cookie_compliance: 0 helfi_global_navigation: 0 helfi_image_styles: 0 diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.accordion.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.accordion.yml new file mode 100644 index 000000000..2bbaeb5b7 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.accordion.yml @@ -0,0 +1 @@ +label: 'Haitari (tuettu muilla kielillä)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.banner.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.banner.yml new file mode 100644 index 000000000..f5a923d51 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.banner.yml @@ -0,0 +1 @@ +label: 'Banneri (tuettu muilla kielillä)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.image.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.image.yml new file mode 100644 index 000000000..38b204637 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.image.yml @@ -0,0 +1 @@ +label: 'Kuva (tuettu muilla kielillä)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.list_of_links.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.list_of_links.yml new file mode 100644 index 000000000..d3f0c4f5b --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.list_of_links.yml @@ -0,0 +1 @@ +label: 'Linkkilista (tuettu muilla kielillä)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.popular_services.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.popular_services.yml new file mode 100644 index 000000000..e0b146df1 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.popular_services.yml @@ -0,0 +1 @@ +label: 'Suositut sisällöt (tuettu muilla kielillä)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.remote_video.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.remote_video.yml new file mode 100644 index 000000000..8e1ca742a --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.remote_video.yml @@ -0,0 +1 @@ +label: 'Videoupotus (tuettu muilla kielillä)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.sidebar_text.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.sidebar_text.yml new file mode 100644 index 000000000..162429894 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.sidebar_text.yml @@ -0,0 +1 @@ +label: 'Sivupalkin teksti (tuettu muilla kielillä)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.text.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.text.yml new file mode 100644 index 000000000..290994a59 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/paragraphs.paragraphs_type.text.yml @@ -0,0 +1 @@ +label: 'Teksti (tuettu muilla kielillä)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.accordion.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.accordion.yml new file mode 100644 index 000000000..7ca99c7fc --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.accordion.yml @@ -0,0 +1 @@ +label: 'Accordion (stöds på andra språk)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.banner.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.banner.yml new file mode 100644 index 000000000..d25debed5 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.banner.yml @@ -0,0 +1 @@ +label: 'Banner (stöds på andra språk)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.image.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.image.yml new file mode 100644 index 000000000..cef092dc9 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.image.yml @@ -0,0 +1 @@ +label: 'Bild (stöds på andra språk)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.list_of_links.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.list_of_links.yml new file mode 100644 index 000000000..922639971 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.list_of_links.yml @@ -0,0 +1 @@ +label: 'List of links (stöds på andra språk)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.popular_services.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.popular_services.yml new file mode 100644 index 000000000..91e032a8c --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.popular_services.yml @@ -0,0 +1 @@ +label: 'Populära tjänster (stöds på andra språk)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.remote_video.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.remote_video.yml new file mode 100644 index 000000000..71efbae25 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.remote_video.yml @@ -0,0 +1 @@ +label: 'Extern video (stöds på andra språk)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.sidebar_text.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.sidebar_text.yml new file mode 100644 index 000000000..1ae3c41e4 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.sidebar_text.yml @@ -0,0 +1 @@ +label: 'Sidebar text (stöds på andra språk)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.text.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.text.yml new file mode 100644 index 000000000..a421ca0c1 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/paragraphs.paragraphs_type.text.yml @@ -0,0 +1 @@ +label: 'Text (stöds på andra språk)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.accordion.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.accordion.yml new file mode 100644 index 000000000..b57085b38 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.accordion.yml @@ -0,0 +1 @@ +label: 'Accordion (supported in other languages)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.banner.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.banner.yml new file mode 100644 index 000000000..981e2985a --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.banner.yml @@ -0,0 +1 @@ +label: 'Banner (supported in other languages)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.image.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.image.yml new file mode 100644 index 000000000..98a48f6aa --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.image.yml @@ -0,0 +1 @@ +label: 'Image (supported in other languages)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.list_of_links.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.list_of_links.yml new file mode 100644 index 000000000..869388ff5 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.list_of_links.yml @@ -0,0 +1 @@ +label: 'List of links (supported in other languages)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.popular_services.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.popular_services.yml new file mode 100644 index 000000000..12cfac40c --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.popular_services.yml @@ -0,0 +1 @@ +label: 'Popular services (supported in other languages)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.remote_video.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.remote_video.yml new file mode 100644 index 000000000..9a775c95a --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.remote_video.yml @@ -0,0 +1 @@ +label: 'Remote video (supported in other languages)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.sidebar_text.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.sidebar_text.yml new file mode 100644 index 000000000..9b2cc01d4 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.sidebar_text.yml @@ -0,0 +1 @@ +label: 'Sidebar text (supported in other languages)' diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.text.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.text.yml new file mode 100644 index 000000000..50db51661 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/paragraphs.paragraphs_type.text.yml @@ -0,0 +1 @@ +label: 'Text (supported in other languages)' diff --git a/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.info.yml b/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.info.yml new file mode 100644 index 000000000..2c2ba3928 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.info.yml @@ -0,0 +1,5 @@ +name: 'Helfi Etusivu Config' +type: module +core_version_requirement: ^10 +dependencies: + - helfi_platform_config:helfi_platform_config diff --git a/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.module b/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.module new file mode 100644 index 000000000..572250bfd --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.module @@ -0,0 +1,31 @@ +rewriteModuleConfig('helfi_etusivu_config'); + } +} From e2643195b8fc2989da835313c052ae533b8e0143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Thu, 14 Mar 2024 13:53:04 +0200 Subject: [PATCH 2/2] UHF-9755: Updated configurations based on replaced custom configurations. --- ...form_display.node.announcement.default.yml | 22 +++--- ...form_display.node.landing_page.default.yml | 2 +- ...ty_form_display.node.news_item.default.yml | 67 ++++++++---------- ..._form_display.paragraph.banner.default.yml | 2 +- ...y.paragraph.list_of_links_item.default.yml | 1 + ...ty_view_display.node.news_item.default.yml | 70 +++++++++---------- ...ity_view_display.node.news_item.teaser.yml | 2 +- ...iew_display.paragraph.hearings.default.yml | 2 +- ...y_view_display.paragraph.image.default.yml | 4 +- ...es.external_entity_type.helfi_hearings.yml | 2 +- ....field.node.landing_page.field_content.yml | 14 ++-- ...eld.field.node.news_item.field_content.yml | 2 +- ...orage.node.field_news_item_links_title.yml | 2 +- .../field.storage.node.field_short_title.yml | 2 +- ...ld.field.media.image.field_media_image.yml | 2 +- ...graph.contact_card.field_contact_image.yml | 2 +- ...th_image.field_liftup_with_image_image.yml | 2 +- ...f_links_item.field_list_of_links_image.yml | 2 +- conf/cmi/language/fi/media.type.image.yml | 2 +- ...aragraphs.paragraphs_type.remote_video.yml | 2 +- conf/cmi/language/fi/views.view.news.yml | 8 +-- ...ld.field.media.image.field_media_image.yml | 2 +- ...graph.contact_card.field_contact_image.yml | 2 +- ...th_image.field_liftup_with_image_image.yml | 2 +- ...f_links_item.field_list_of_links_image.yml | 2 +- conf/cmi/language/sv/media.type.image.yml | 2 +- ...aragraphs.paragraphs_type.remote_video.yml | 2 +- conf/cmi/language/sv/views.view.news.yml | 10 +-- conf/cmi/views.view.media_library.yml | 4 +- ...form_display.node.announcement.default.yml | 15 ++++ ...ty_form_display.node.news_item.default.yml | 56 +++++++++++++++ ...ty_view_display.node.news_item.default.yml | 61 ++++++++++++++++ .../rewrite/language/fi/views.view.news.yml | 7 ++ .../rewrite/language/sv/views.view.news.yml | 12 ++++ .../helfi_etusivu_config.module | 2 + 35 files changed, 271 insertions(+), 122 deletions(-) create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_form_display.node.announcement.default.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_form_display.node.news_item.default.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_view_display.node.news_item.default.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/views.view.news.yml create mode 100644 public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/views.view.news.yml diff --git a/conf/cmi/core.entity_form_display.node.announcement.default.yml b/conf/cmi/core.entity_form_display.node.announcement.default.yml index 0cc1059bd..ecb7d46a5 100644 --- a/conf/cmi/core.entity_form_display.node.announcement.default.yml +++ b/conf/cmi/core.entity_form_display.node.announcement.default.yml @@ -28,7 +28,7 @@ mode: default content: body: type: text_textarea_with_summary - weight: 17 + weight: 18 region: content settings: rows: 9 @@ -51,7 +51,7 @@ content: third_party_settings: { } field_announcement_content_pages: type: select2_entity_reference - weight: 15 + weight: 14 region: content settings: width: 100% @@ -61,7 +61,7 @@ content: third_party_settings: { } field_announcement_link: type: link_default - weight: 18 + weight: 19 region: content settings: placeholder_url: '' @@ -79,7 +79,7 @@ content: third_party_settings: { } field_announcement_title: type: string_textfield - weight: 16 + weight: 17 region: content settings: size: 60 @@ -102,13 +102,6 @@ content: match_operator: CONTAINS match_limit: 20 third_party_settings: { } - field_publish_externally: - type: boolean_checkbox - weight: 14 - region: content - settings: - display_label: true - third_party_settings: { } langcode: type: language_select weight: 1 @@ -180,6 +173,13 @@ content: region: content settings: { } third_party_settings: { } + field_publish_externally: + type: boolean_checkbox + weight: 14 + region: content + settings: + display_label: true + third_party_settings: { } hidden: hide_sidebar_navigation: true promote: true diff --git a/conf/cmi/core.entity_form_display.node.landing_page.default.yml b/conf/cmi/core.entity_form_display.node.landing_page.default.yml index 8f1bbbc46..6497cfb24 100644 --- a/conf/cmi/core.entity_form_display.node.landing_page.default.yml +++ b/conf/cmi/core.entity_form_display.node.landing_page.default.yml @@ -128,9 +128,9 @@ content: third_party_settings: { } simple_sitemap: weight: 10 - region: content settings: { } third_party_settings: { } + region: content status: type: boolean_checkbox weight: 12 diff --git a/conf/cmi/core.entity_form_display.node.news_item.default.yml b/conf/cmi/core.entity_form_display.node.news_item.default.yml index 55a847411..2fca2886a 100644 --- a/conf/cmi/core.entity_form_display.node.news_item.default.yml +++ b/conf/cmi/core.entity_form_display.node.news_item.default.yml @@ -23,9 +23,9 @@ dependencies: - paragraphs - path - publication_date - - radioactivity - scheduler - select2 + - radioactivity third_party_settings: field_group: group_news_item_links: @@ -69,18 +69,11 @@ third_party_settings: format_type: details format_settings: classes: '' - show_empty_fields: true + show_empty_fields: false id: '' open: false description: '' - required_fields: false - element: div - show_label: '0' - label_element: h3 - label_element_classes: '' - attributes: '' - effect: none - speed: fast + required_fields: true _core: default_config_hash: RHDFf9pvwgV2FvoelXlH7dXXBoWkziCZI1FWuQS94k8 id: node.news_item.default @@ -136,16 +129,6 @@ content: rows: 5 placeholder: '' third_party_settings: { } - field_news_groups: - type: select2_entity_reference - weight: 26 - region: content - settings: - width: 100% - autocomplete: false - match_operator: CONTAINS - match_limit: 10 - third_party_settings: { } field_news_item_links_link: type: linkit weight: 20 @@ -153,7 +136,7 @@ content: settings: placeholder_url: '' placeholder_title: '' - linkit_profile: tpr_content + linkit_profile: helfi linkit_auto_link_text: true third_party_settings: { } field_news_item_links_title: @@ -174,22 +157,6 @@ content: match_operator: CONTAINS match_limit: 10 third_party_settings: { } - field_news_neighbourhoods: - type: select2_entity_reference - weight: 27 - region: content - settings: - width: 100% - autocomplete: false - match_operator: CONTAINS - match_limit: 10 - third_party_settings: { } - field_radioactivity: - type: radioactivity_reference - weight: 28 - region: content - settings: { } - third_party_settings: { } field_short_title: type: string_textfield weight: 2 @@ -288,5 +255,31 @@ content: region: content settings: { } third_party_settings: { } + field_news_groups: + type: select2_entity_reference + weight: 26 + region: content + settings: + width: 100% + autocomplete: false + match_operator: CONTAINS + match_limit: 10 + third_party_settings: { } + field_news_neighbourhoods: + type: select2_entity_reference + weight: 27 + region: content + settings: + width: 100% + autocomplete: false + match_operator: CONTAINS + match_limit: 10 + third_party_settings: { } + field_radioactivity: + type: radioactivity_reference + weight: 28 + region: content + settings: { } + third_party_settings: { } hidden: hide_sidebar_navigation: true diff --git a/conf/cmi/core.entity_form_display.paragraph.banner.default.yml b/conf/cmi/core.entity_form_display.paragraph.banner.default.yml index 0a16748ce..563713935 100644 --- a/conf/cmi/core.entity_form_display.paragraph.banner.default.yml +++ b/conf/cmi/core.entity_form_display.paragraph.banner.default.yml @@ -42,8 +42,8 @@ content: weight: 4 region: content settings: - linkit_profile: helfi linkit_auto_link_text: false + linkit_profile: helfi third_party_settings: { } field_banner_link_design: type: design_field_widget diff --git a/conf/cmi/core.entity_form_display.paragraph.list_of_links_item.default.yml b/conf/cmi/core.entity_form_display.paragraph.list_of_links_item.default.yml index e5685e4da..9cb8df4a2 100644 --- a/conf/cmi/core.entity_form_display.paragraph.list_of_links_item.default.yml +++ b/conf/cmi/core.entity_form_display.paragraph.list_of_links_item.default.yml @@ -8,6 +8,7 @@ dependencies: - field.field.paragraph.list_of_links_item.field_list_of_links_link - paragraphs.paragraphs_type.list_of_links_item module: + - hdbt_admin_tools - media_library enforced: module: diff --git a/conf/cmi/core.entity_view_display.node.news_item.default.yml b/conf/cmi/core.entity_view_display.node.news_item.default.yml index 9cb118539..271a547bf 100644 --- a/conf/cmi/core.entity_view_display.node.news_item.default.yml +++ b/conf/cmi/core.entity_view_display.node.news_item.default.yml @@ -19,8 +19,8 @@ dependencies: - entity_reference_revisions - helfi_platform_config - link - - radioactivity - user + - radioactivity _core: default_config_hash: fHNnwg186A981K7d578If1MCkuYBmQqaxabpDSAZwIc id: node.news_item.default @@ -60,14 +60,6 @@ content: third_party_settings: { } weight: 8 region: content - field_news_groups: - type: entity_reference_label - label: above - settings: - link: false - third_party_settings: { } - weight: 10 - region: content field_news_item_links_link: type: link label: hidden @@ -88,32 +80,6 @@ content: third_party_settings: { } weight: 6 region: content - field_news_item_tags: - type: entity_reference_label - label: above - settings: - link: false - third_party_settings: { } - weight: 11 - region: content - field_news_neighbourhoods: - type: entity_reference_label - label: above - settings: - link: false - third_party_settings: { } - weight: 12 - region: content - field_radioactivity: - type: radioactivity_reference_emitter - label: above - settings: - energy: 10.0 - display: false - decimals: 0.0 - third_party_settings: { } - weight: 9 - region: content field_short_title: type: string label: hidden @@ -146,6 +112,40 @@ content: third_party_settings: { } weight: 3 region: content + field_news_groups: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 10 + region: content + field_news_item_tags: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 11 + region: content + field_news_neighbourhoods: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 12 + region: content + field_radioactivity: + type: radioactivity_reference_emitter + label: above + settings: + energy: 10.0 + display: false + decimals: 0.0 + third_party_settings: { } + weight: 9 + region: content hidden: langcode: true search_api_excerpt: true diff --git a/conf/cmi/core.entity_view_display.node.news_item.teaser.yml b/conf/cmi/core.entity_view_display.node.news_item.teaser.yml index 640bf4326..38c929cb5 100644 --- a/conf/cmi/core.entity_view_display.node.news_item.teaser.yml +++ b/conf/cmi/core.entity_view_display.node.news_item.teaser.yml @@ -29,7 +29,7 @@ content: type: entity_reference_entity_view label: hidden settings: - view_mode: image + view_mode: media_library link: false third_party_settings: { } weight: 1 diff --git a/conf/cmi/core.entity_view_display.paragraph.hearings.default.yml b/conf/cmi/core.entity_view_display.paragraph.hearings.default.yml index 00d470ed5..019b6734f 100644 --- a/conf/cmi/core.entity_view_display.paragraph.hearings.default.yml +++ b/conf/cmi/core.entity_view_display.paragraph.hearings.default.yml @@ -31,9 +31,9 @@ content: weight: 0 region: content list: + weight: 100 settings: { } third_party_settings: { } - weight: 100 region: content hidden: search_api_excerpt: true diff --git a/conf/cmi/core.entity_view_display.paragraph.image.default.yml b/conf/cmi/core.entity_view_display.paragraph.image.default.yml index 408eb9ea2..8610e9193 100644 --- a/conf/cmi/core.entity_view_display.paragraph.image.default.yml +++ b/conf/cmi/core.entity_view_display.paragraph.image.default.yml @@ -7,8 +7,10 @@ dependencies: - field.field.paragraph.image.field_image_caption - field.field.paragraph.image.field_original_aspect_ratio - paragraphs.paragraphs_type.image + module: + - helfi_platform_config _core: - default_config_hash: WOIjdvfdwRn0wIU-TyaRDV4PKTm77QLskpKljuLGk5Q + default_config_hash: 3mLKi-YKV64AEso5VbzLofy-2PrULe3WFxhURqVP6NM id: paragraph.image.default targetEntityType: paragraph bundle: image diff --git a/conf/cmi/external_entities.external_entity_type.helfi_hearings.yml b/conf/cmi/external_entities.external_entity_type.helfi_hearings.yml index f5cf88faa..9df39458c 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_hearings.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_hearings.yml @@ -8,8 +8,8 @@ id: helfi_hearings label: 'Helfi: Hearing' label_plural: 'Helfi: Hearing' description: 'Helfi hearings from hearing api.' -read_only: true generate_aliases: false +read_only: true field_mapper_id: jsonpath field_mapper_config: field_mappings: diff --git a/conf/cmi/field.field.node.landing_page.field_content.yml b/conf/cmi/field.field.node.landing_page.field_content.yml index 6200c235f..34ab8dc10 100644 --- a/conf/cmi/field.field.node.landing_page.field_content.yml +++ b/conf/cmi/field.field.node.landing_page.field_content.yml @@ -40,21 +40,21 @@ settings: handler: 'default:paragraph' handler_settings: target_bundles: - front_page_latest_news: front_page_latest_news - front_page_top_news: front_page_top_news current: current + front_page_top_news: front_page_top_news + front_page_latest_news: front_page_latest_news event_list: event_list - columns: columns list_of_links: list_of_links content_cards: content_cards banner: banner liftup_with_image: liftup_with_image + popular_services: popular_services from_library: from_library - chart: chart - remote_video: remote_video - map: map + columns: columns phasing: phasing - popular_services: popular_services + map: map + remote_video: remote_video + chart: chart target_group_links: target_group_links hearings: hearings negate: 0 diff --git a/conf/cmi/field.field.node.news_item.field_content.yml b/conf/cmi/field.field.node.news_item.field_content.yml index 1505cd481..e08b800f9 100644 --- a/conf/cmi/field.field.node.news_item.field_content.yml +++ b/conf/cmi/field.field.node.news_item.field_content.yml @@ -32,9 +32,9 @@ settings: handler_settings: target_bundles: text: text - banner: banner image: image remote_video: remote_video + banner: banner negate: 0 target_bundles_drag_drop: banner: diff --git a/conf/cmi/field.storage.node.field_news_item_links_title.yml b/conf/cmi/field.storage.node.field_news_item_links_title.yml index 76188743f..41f4e1343 100644 --- a/conf/cmi/field.storage.node.field_news_item_links_title.yml +++ b/conf/cmi/field.storage.node.field_news_item_links_title.yml @@ -12,8 +12,8 @@ entity_type: node type: string settings: max_length: 255 - case_sensitive: false is_ascii: false + case_sensitive: false module: core locked: false cardinality: 1 diff --git a/conf/cmi/field.storage.node.field_short_title.yml b/conf/cmi/field.storage.node.field_short_title.yml index 5be8525d5..69a4287b7 100644 --- a/conf/cmi/field.storage.node.field_short_title.yml +++ b/conf/cmi/field.storage.node.field_short_title.yml @@ -12,8 +12,8 @@ entity_type: node type: string settings: max_length: 255 - case_sensitive: false is_ascii: false + case_sensitive: false module: core locked: false cardinality: 1 diff --git a/conf/cmi/language/fi/field.field.media.image.field_media_image.yml b/conf/cmi/language/fi/field.field.media.image.field_media_image.yml index 38b204637..22ed4bd44 100644 --- a/conf/cmi/language/fi/field.field.media.image.field_media_image.yml +++ b/conf/cmi/language/fi/field.field.media.image.field_media_image.yml @@ -1 +1 @@ -label: 'Kuva (tuettu muilla kielillä)' +label: Kuva diff --git a/conf/cmi/language/fi/field.field.paragraph.contact_card.field_contact_image.yml b/conf/cmi/language/fi/field.field.paragraph.contact_card.field_contact_image.yml index b557868c5..4c1abb8aa 100644 --- a/conf/cmi/language/fi/field.field.paragraph.contact_card.field_contact_image.yml +++ b/conf/cmi/language/fi/field.field.paragraph.contact_card.field_contact_image.yml @@ -1,2 +1,2 @@ -label: 'Kuva (tuettu muilla kielillä)' +label: Kuva description: 'Vaaka- ja pystykuvat rajataan neliöiksi. Rajatun kuvan keskipisteen voi valita kuvan latauksen yhteydessä. ' diff --git a/conf/cmi/language/fi/field.field.paragraph.liftup_with_image.field_liftup_with_image_image.yml b/conf/cmi/language/fi/field.field.paragraph.liftup_with_image.field_liftup_with_image_image.yml index 099ff5d6e..83cd85cda 100644 --- a/conf/cmi/language/fi/field.field.paragraph.liftup_with_image.field_liftup_with_image_image.yml +++ b/conf/cmi/language/fi/field.field.paragraph.liftup_with_image.field_liftup_with_image_image.yml @@ -1,2 +1,2 @@ -label: 'Kuva (tuettu muilla kielillä)' +label: Kuva description: 'Kuva jota käytetään kuvituskuvana tai taustakuvana lohkossa riippuen siitä minkä tyylin olet lohkolle valinnut.' diff --git a/conf/cmi/language/fi/field.field.paragraph.list_of_links_item.field_list_of_links_image.yml b/conf/cmi/language/fi/field.field.paragraph.list_of_links_item.field_list_of_links_image.yml index 6993d02c6..ebf678807 100644 --- a/conf/cmi/language/fi/field.field.paragraph.list_of_links_item.field_list_of_links_image.yml +++ b/conf/cmi/language/fi/field.field.paragraph.list_of_links_item.field_list_of_links_image.yml @@ -1,2 +1,2 @@ -label: 'Kuva (tuettu muilla kielillä)' +label: Kuva description: 'Kuva jota käytetään linkin yhteydessä.' diff --git a/conf/cmi/language/fi/media.type.image.yml b/conf/cmi/language/fi/media.type.image.yml index 8ee568726..808a8328c 100644 --- a/conf/cmi/language/fi/media.type.image.yml +++ b/conf/cmi/language/fi/media.type.image.yml @@ -1,2 +1,2 @@ -label: 'Kuva (tuettu muilla kielillä)' +label: Kuva description: 'Mediatyyppi kuville.' diff --git a/conf/cmi/language/fi/paragraphs.paragraphs_type.remote_video.yml b/conf/cmi/language/fi/paragraphs.paragraphs_type.remote_video.yml index 33d4703c0..4cbbc6099 100644 --- a/conf/cmi/language/fi/paragraphs.paragraphs_type.remote_video.yml +++ b/conf/cmi/language/fi/paragraphs.paragraphs_type.remote_video.yml @@ -1,2 +1,2 @@ -label: Videoupotus +label: 'Videoupotus (tuettu muilla kielillä)' description: 'Tällä lohkolla voit upottaa videon ulkoisesta palvelusta. Tukee tällä hetkellä vain YouTubea.' diff --git a/conf/cmi/language/fi/views.view.news.yml b/conf/cmi/language/fi/views.view.news.yml index 1c4804bcc..494e78679 100644 --- a/conf/cmi/language/fi/views.view.news.yml +++ b/conf/cmi/language/fi/views.view.news.yml @@ -2,10 +2,6 @@ display: default: display_title: Oletus display_options: - title: 'Uusimmat uutiset' - fields: - view_node: - text: näkymä exposed_form: options: submit_button: Käytä @@ -13,6 +9,10 @@ display: exposed_sorts_label: Lajittele sort_asc_label: Nousevasti sort_desc_label: Laskevasti + fields: + view_node: + text: näkymä + title: 'Uusimmat uutiset' arguments: nid: exception: diff --git a/conf/cmi/language/sv/field.field.media.image.field_media_image.yml b/conf/cmi/language/sv/field.field.media.image.field_media_image.yml index cef092dc9..b7c0a4502 100644 --- a/conf/cmi/language/sv/field.field.media.image.field_media_image.yml +++ b/conf/cmi/language/sv/field.field.media.image.field_media_image.yml @@ -1 +1 @@ -label: 'Bild (stöds på andra språk)' +label: Bild diff --git a/conf/cmi/language/sv/field.field.paragraph.contact_card.field_contact_image.yml b/conf/cmi/language/sv/field.field.paragraph.contact_card.field_contact_image.yml index cef092dc9..b7c0a4502 100644 --- a/conf/cmi/language/sv/field.field.paragraph.contact_card.field_contact_image.yml +++ b/conf/cmi/language/sv/field.field.paragraph.contact_card.field_contact_image.yml @@ -1 +1 @@ -label: 'Bild (stöds på andra språk)' +label: Bild diff --git a/conf/cmi/language/sv/field.field.paragraph.liftup_with_image.field_liftup_with_image_image.yml b/conf/cmi/language/sv/field.field.paragraph.liftup_with_image.field_liftup_with_image_image.yml index cef092dc9..b7c0a4502 100644 --- a/conf/cmi/language/sv/field.field.paragraph.liftup_with_image.field_liftup_with_image_image.yml +++ b/conf/cmi/language/sv/field.field.paragraph.liftup_with_image.field_liftup_with_image_image.yml @@ -1 +1 @@ -label: 'Bild (stöds på andra språk)' +label: Bild diff --git a/conf/cmi/language/sv/field.field.paragraph.list_of_links_item.field_list_of_links_image.yml b/conf/cmi/language/sv/field.field.paragraph.list_of_links_item.field_list_of_links_image.yml index cef092dc9..b7c0a4502 100644 --- a/conf/cmi/language/sv/field.field.paragraph.list_of_links_item.field_list_of_links_image.yml +++ b/conf/cmi/language/sv/field.field.paragraph.list_of_links_item.field_list_of_links_image.yml @@ -1 +1 @@ -label: 'Bild (stöds på andra språk)' +label: Bild diff --git a/conf/cmi/language/sv/media.type.image.yml b/conf/cmi/language/sv/media.type.image.yml index cef092dc9..b7c0a4502 100644 --- a/conf/cmi/language/sv/media.type.image.yml +++ b/conf/cmi/language/sv/media.type.image.yml @@ -1 +1 @@ -label: 'Bild (stöds på andra språk)' +label: Bild diff --git a/conf/cmi/language/sv/paragraphs.paragraphs_type.remote_video.yml b/conf/cmi/language/sv/paragraphs.paragraphs_type.remote_video.yml index 1533b16a7..71efbae25 100644 --- a/conf/cmi/language/sv/paragraphs.paragraphs_type.remote_video.yml +++ b/conf/cmi/language/sv/paragraphs.paragraphs_type.remote_video.yml @@ -1 +1 @@ -label: 'Extern video' +label: 'Extern video (stöds på andra språk)' diff --git a/conf/cmi/language/sv/views.view.news.yml b/conf/cmi/language/sv/views.view.news.yml index e6c5b6d9c..106c47a95 100644 --- a/conf/cmi/language/sv/views.view.news.yml +++ b/conf/cmi/language/sv/views.view.news.yml @@ -2,17 +2,17 @@ display: default: display_title: Förvald display_options: - title: 'Senaste nyheterna' - fields: - view_node: - text: visa exposed_form: options: - submit_button: Verkställ reset_button_label: Återställ exposed_sorts_label: 'Sortera efter' sort_asc_label: Stigande sort_desc_label: Fallande + submit_button: Verkställ + fields: + view_node: + text: visa + title: 'Senaste nyheterna' arguments: nid: exception: diff --git a/conf/cmi/views.view.media_library.yml b/conf/cmi/views.view.media_library.yml index c4eb59cae..08ba11ba4 100644 --- a/conf/cmi/views.view.media_library.yml +++ b/conf/cmi/views.view.media_library.yml @@ -1336,7 +1336,7 @@ display: image_link: '' image_style: media_library image_loading: - attribute: lazy + attribute: eager name: id: name table: media_field_data @@ -1376,7 +1376,7 @@ display: custom_date_format: '' timezone: '' tooltip: - date_format: '' + date_format: long custom_date_format: '' time_diff: enabled: false diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_form_display.node.announcement.default.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_form_display.node.announcement.default.yml new file mode 100644 index 000000000..b5cd5e531 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_form_display.node.announcement.default.yml @@ -0,0 +1,15 @@ +config_rewrite: + replace: ['hidden'] +content: + field_publish_externally: + type: boolean_checkbox + weight: 14 + region: content + settings: + display_label: true + third_party_settings: { } +hidden: + hide_sidebar_navigation: true + promote: true + sticky: true + url_redirects: true diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_form_display.node.news_item.default.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_form_display.node.news_item.default.yml new file mode 100644 index 000000000..4308b52ae --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_form_display.node.news_item.default.yml @@ -0,0 +1,56 @@ +config_rewrite: + replace: ['hidden', 'dependencies'] +dependencies: + config: + - field.field.node.news_item.field_content + - field.field.node.news_item.field_lead_in + - field.field.node.news_item.field_main_image + - field.field.node.news_item.field_main_image_caption + - field.field.node.news_item.field_news_groups + - 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_neighbourhoods + - field.field.node.news_item.field_radioactivity + - field.field.node.news_item.field_short_title + - node.type.news_item + module: + - field_group + - hdbt_admin_tools + - linkit + - media_library + - paragraphs + - path + - publication_date + - scheduler + - select2 + - radioactivity +content: + field_news_groups: + type: select2_entity_reference + weight: 26 + region: content + settings: + width: 100% + autocomplete: false + match_operator: CONTAINS + match_limit: 10 + third_party_settings: { } + field_news_neighbourhoods: + type: select2_entity_reference + weight: 27 + region: content + settings: + width: 100% + autocomplete: false + match_operator: CONTAINS + match_limit: 10 + third_party_settings: { } + field_radioactivity: + type: radioactivity_reference + weight: 28 + region: content + settings: { } + third_party_settings: { } +hidden: + hide_sidebar_navigation: true diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_view_display.node.news_item.default.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_view_display.node.news_item.default.yml new file mode 100644 index 000000000..5c9038a72 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/core.entity_view_display.node.news_item.default.yml @@ -0,0 +1,61 @@ +config_rewrite: + replace: ['dependencies','hidden'] +dependencies: + config: + - field.field.node.news_item.field_content + - field.field.node.news_item.field_lead_in + - field.field.node.news_item.field_main_image + - field.field.node.news_item.field_main_image_caption + - field.field.node.news_item.field_news_groups + - 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_neighbourhoods + - field.field.node.news_item.field_radioactivity + - field.field.node.news_item.field_short_title + - node.type.news_item + module: + - entity_reference_revisions + - helfi_platform_config + - link + - user + - radioactivity +content: + field_news_groups: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 10 + region: content + field_news_item_tags: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 11 + region: content + field_news_neighbourhoods: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 12 + region: content + field_radioactivity: + type: radioactivity_reference_emitter + label: above + settings: + energy: 10.0 + display: false + decimals: 0.0 + third_party_settings: { } + weight: 9 + region: content +hidden: + langcode: true + search_api_excerpt: true + toc_enabled: true diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/views.view.news.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/views.view.news.yml new file mode 100644 index 000000000..98bf78d39 --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/fi/views.view.news.yml @@ -0,0 +1,7 @@ +display: + latest_news: + display_title: 'Uusimmat uutiset' + display_options: + title: 'Uusimmat uutiset' + use_more_text: 'Katso kaikki uutiset' + link_url: /uutiset diff --git a/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/views.view.news.yml b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/views.view.news.yml new file mode 100644 index 000000000..c4dae761f --- /dev/null +++ b/public/modules/custom/helfi_etusivu_config/config/rewrite/language/sv/views.view.news.yml @@ -0,0 +1,12 @@ +display: + default: + display_options: + exposed_form: + options: + submit_button: Verkställ + latest_news: + display_title: 'Senaste nyheterna' + display_options: + title: 'Senaste nyheterna' + use_more_text: 'Se alla nyheter' + link_url: /nyheter diff --git a/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.module b/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.module index 572250bfd..4a37476eb 100644 --- a/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.module +++ b/public/modules/custom/helfi_etusivu_config/helfi_etusivu_config.module @@ -14,6 +14,8 @@ use Drupal\config_rewrite\ConfigRewriterInterface; */ function helfi_etusivu_config_rewrite_config_update(string $module, ConfigRewriterInterface $configRewriter): void { $modules = [ + 'helfi_node_announcement', + 'helfi_node_news_item', 'helfi_paragraphs_accordion', 'helfi_paragraphs_banner', 'helfi_paragraphs_image',