-
Notifications
You must be signed in to change notification settings - Fork 7
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 #602 from City-of-Helsinki/UHF-9736
UHF-9736: News article
- Loading branch information
Showing
156 changed files
with
4,826 additions
and
40 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
conf/cmi/block.block.hdbt_subtheme_newsarticleheroblock.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: 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 |
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
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
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
24 changes: 24 additions & 0 deletions
24
conf/cmi/core.base_field_override.node.news_article.promote.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,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
24
conf/cmi/core.base_field_override.node.news_article.status.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,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
292
conf/cmi/core.entity_form_display.node.news_article.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,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 |
Oops, something went wrong.