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

UHF-9738: news article content type #572

Merged
merged 19 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c5eb7b2
UHF-9738: Add helfi_node_news_article
hyrsky Apr 8, 2024
037059c
UHF-9738: Test that [node:short-title] works with news_article
hyrsky Apr 8, 2024
54028d5
UHF-9738: Use OGImageBuilder service for news node tokens
hyrsky Apr 8, 2024
91e0b96
UHF-9738: Implement helfi_etusivu features for news_article type
hyrsky Apr 8, 2024
4bbee74
UHF-9738: Enable sidebar for news_article
hyrsky Apr 8, 2024
6de2000
UHF-9738: Enable helfi_node_news_article
hyrsky Apr 8, 2024
d542362
UHF-9738: Add with search design only to paragraph hero
hyrsky Apr 8, 2024
ec19bc1
UHF-9738: Change translation "Uutisartikkeli" -> "Artikkeli"
hyrsky Apr 8, 2024
7b8f2d4
UHF-9738: On news article change the hero design field to use list_ke…
teroelonen Apr 9, 2024
5255abd
UHF-9738: Merge branch 'UHF-9738-news-article' of github.com:City-of-…
teroelonen Apr 9, 2024
49b4bec
UHF-9738: Move the news article templates to hdbt_subtheme, add block…
teroelonen Apr 10, 2024
298c862
UHF-9738: Change the news article external entity template to refer d…
teroelonen Apr 10, 2024
e33c4ab
UHF-9738: Add news article hero block configuration to the helfi_node…
teroelonen Apr 10, 2024
ce3a6fe
UHF-9738: Remove local.services.yml
hyrsky Apr 10, 2024
626893d
UHF-9738: PHPCS fixes
hyrsky Apr 10, 2024
294600a
UHF-9738: Add most read news to news article page, add missing uuid f…
teroelonen Apr 10, 2024
c1b4a0e
UHF-9738: Merge branch 'UHF-9738-news-article' of github.com:City-of-…
teroelonen Apr 10, 2024
2f4b585
UHF-9738: Fix config language
hyrsky Apr 11, 2024
50ac7df
UHF-9738: Test og:image
hyrsky Apr 11, 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
27 changes: 27 additions & 0 deletions conf/cmi/block.block.hdbt_subtheme_newsarticleheroblock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 7c11f311-ac6b-423f-a13a-89315eee6334
langcode: en
status: true
dependencies:
module:
- node
theme:
- hdbt_subtheme
id: hdbt_subtheme_newsarticleheroblock
theme: hdbt_subtheme
region: before_content
weight: -11
provider: null
plugin: news_article_hero_block
settings:
id: news_article_hero_block
label: 'News article hero block'
label_display: '0'
provider: helfi_node_news_article
visibility:
'entity_bundle:node':
id: 'entity_bundle:node'
negate: false
context_mapping:
node: '@node.node_route_context:node'
bundles:
news_article: news_article
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ visibility:
context_mapping:
node: '@node.node_route_context:node'
bundles:
news_article: news_article
news_item: news_item
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ visibility:
context_mapping:
node: '@node.node_route_context:node'
bundles:
news_article: news_article
news_item: news_item
24 changes: 24 additions & 0 deletions conf/cmi/core.base_field_override.node.news_article.promote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 045defc9-194a-45dd-9426-6fccf5ff50ae
langcode: en
status: true
dependencies:
config:
- node.type.news_article
_core:
default_config_hash: L9T8pIMO1UXjkDoAOAxgoflo_jcY9qcET6wQQW2IXO4
id: node.news_article.promote
field_name: promote
entity_type: node
bundle: news_article
label: 'Promoted to front page'
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
24 changes: 24 additions & 0 deletions conf/cmi/core.base_field_override.node.news_article.status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 7b7d875b-1d8d-48cb-b754-f0eb2f2058b2
langcode: en
status: true
dependencies:
config:
- node.type.news_article
_core:
default_config_hash: eMx__Nr3imNRV-LWr7imxOL-eg6A_YMdZ1FHEseG9DA
id: node.news_article.status
field_name: status
entity_type: node
bundle: news_article
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
292 changes: 292 additions & 0 deletions conf/cmi/core.entity_form_display.node.news_article.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
uuid: 47a7c14f-da5e-426c-bfbf-1784f9595910
langcode: en
status: true
dependencies:
config:
- field.field.node.news_article.field_content
- field.field.node.news_article.field_hero_design
- field.field.node.news_article.field_lead_in
- field.field.node.news_article.field_main_image
- field.field.node.news_article.field_main_image_caption
- field.field.node.news_article.field_news_groups
- field.field.node.news_article.field_news_item_links_link
- field.field.node.news_article.field_news_item_links_title
- field.field.node.news_article.field_news_item_tags
- field.field.node.news_article.field_news_neighbourhoods
- field.field.node.news_article.field_radioactivity
- field.field.node.news_article.field_short_title
- node.type.news_article
module:
- field_group
- hdbt_admin_tools
- linkit
- media_library
- paragraphs
- path
- publication_date
- radioactivity
- scheduler
- select2
third_party_settings:
field_group:
group_news_item_links:
children:
- field_news_item_links_title
- field_news_item_links_link
label: Links
region: content
parent_name: group_news_item_links_wrapper
weight: 19
format_type: details
format_settings:
classes: ''
show_empty_fields: false
id: ''
open: false
description: ''
required_fields: false
group_news_item_links_wrapper:
children:
- group_news_item_links
label: Links
region: content
parent_name: ''
weight: 20
format_type: fieldset
format_settings:
classes: ''
show_empty_fields: true
id: ''
description: ''
required_fields: false
group_main_image:
children:
- field_main_image
- field_main_image_caption
label: 'Main image'
region: content
parent_name: ''
weight: 18
format_type: details
format_settings:
classes: ''
show_empty_fields: false
id: ''
open: false
description: ''
required_fields: true
_core:
default_config_hash: Pnb6wyNhWan2d_Guak8rAn8-FFMa8DndKS8XZfnR-MM
id: node.news_article.default
targetEntityType: node
bundle: news_article
mode: default
content:
created:
type: datetime_timestamp
weight: 4
region: content
settings: { }
third_party_settings: { }
field_content:
type: paragraphs
weight: 19
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
duplicate: duplicate
third_party_settings: { }
field_hero_design:
type: options_select
weight: 7
region: content
settings: { }
third_party_settings: { }
field_lead_in:
type: string_textarea
weight: 17
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_main_image:
type: media_library_widget
weight: 17
region: content
settings:
media_types: { }
third_party_settings: { }
field_main_image_caption:
type: string_textarea
weight: 18
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_news_groups:
type: select2_entity_reference
weight: 22
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
region: content
settings:
placeholder_url: ''
placeholder_title: ''
linkit_profile: helfi
linkit_auto_link_text: true
third_party_settings: { }
field_news_item_links_title:
type: string_textfield
weight: 19
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_news_item_tags:
type: select2_entity_reference
weight: 21
region: content
settings:
width: 100%
autocomplete: false
match_operator: CONTAINS
match_limit: 10
third_party_settings: { }
field_news_neighbourhoods:
type: select2_entity_reference
weight: 23
region: content
settings:
width: 100%
autocomplete: false
match_operator: CONTAINS
match_limit: 10
third_party_settings: { }
field_radioactivity:
type: radioactivity_reference
weight: 24
region: content
settings: { }
third_party_settings: { }
field_short_title:
type: string_textfield
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
langcode:
type: language_select
weight: 0
region: content
settings:
include_locked: false
third_party_settings: { }
path:
type: path
weight: 11
region: content
settings: { }
third_party_settings: { }
promote:
type: boolean_checkbox
weight: 8
region: content
settings:
display_label: true
third_party_settings: { }
publish_on:
type: datetime_timestamp_no_default
weight: 13
region: content
settings: { }
third_party_settings: { }
published_at:
type: publication_date_timestamp
weight: 5
region: content
settings: { }
third_party_settings: { }
scheduler_settings:
weight: 10
region: content
settings: { }
third_party_settings: { }
simple_sitemap:
weight: 12
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 16
region: content
settings:
display_label: true
third_party_settings: { }
sticky:
type: boolean_checkbox
weight: 9
region: content
settings:
display_label: true
third_party_settings: { }
title:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
translation:
weight: 6
region: content
settings: { }
third_party_settings: { }
uid:
type: entity_reference_autocomplete
weight: 3
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
unpublish_on:
type: datetime_timestamp_no_default
weight: 14
region: content
settings: { }
third_party_settings: { }
url_redirects:
weight: 15
region: content
settings: { }
third_party_settings: { }
hidden:
hide_sidebar_navigation: true
Loading
Loading