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-9739 Updating news #608

Merged
merged 15 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
4 changes: 3 additions & 1 deletion conf/cmi/core.entity_view_display.node.news_item.teaser.yml
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: y7-XNi5JaI60YIxmANoDIqzZ09lyzAiFwhYNEyO4nDc
default_config_hash: gOi3OpZskrzmvZPMzBgPX5pDCAgJhTEQKkR3Ka66jfY
id: node.news_item.teaser
targetEntityType: node
bundle: news_item
Expand Down Expand Up @@ -83,6 +84,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
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: k8a-Ho8gCsq1hUA_KlWab29egZov57JPtywUawPbYHU
default_config_hash: GZ4RFPkRq0OjD31t8jG9R5KZvzi7xhjM1-7kONczzrA
id: node.news_item.tiny_teaser
targetEntityType: node
bundle: news_item
Expand Down Expand Up @@ -71,6 +72,7 @@ hidden:
field_news_item_links_link: true
field_news_item_links_title: true
field_news_item_tags: true
field_news_item_updating_news: true
field_news_neighbourhoods: true
field_radioactivity: true
langcode: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
uuid: a0d41678-10a0-4519-be98-d17f3051a687
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
- entity_reference_revisions
_core:
default_config_hash: 4u5e96aoW-RpNubuc3W4Hy-4UbKXdL-iIQU9bINu8X0
id: paragraph.news_update.default
targetEntityType: paragraph
bundle: news_update
mode: default
content:
field_news_update:
type: entity_reference_revisions_entity_view
label: hidden
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 2
region: content
field_news_update_date:
type: datetime_default
label: hidden
settings:
timezone_override: ''
format_type: publication_date_format
third_party_settings: { }
weight: 1
region: content
field_news_update_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
uuid: e6f7408a-1e53-4af0-97eb-5122f611d019
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.paragraph.preview
- 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
- entity_reference_revisions
_core:
default_config_hash: 4u5e96aoW-RpNubuc3W4Hy-4UbKXdL-iIQU9bINu8X0
id: paragraph.news_update.preview
targetEntityType: paragraph
bundle: news_update
mode: preview
content:
field_news_update:
type: entity_reference_revisions_entity_view
label: hidden
settings:
view_mode: default
link: ''
third_party_settings: { }
weight: 2
region: content
field_news_update_date:
type: datetime_custom
label: hidden
settings:
timezone_override: ''
date_format: U
third_party_settings: { }
weight: 1
region: content
field_news_update_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
uuid: badac28d-62bc-4e48-94de-9ccc20dc44a7
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_news_item_updating_news
- node.type.news_item
- paragraphs.paragraphs_type.news_update
module:
- entity_reference_revisions
_core:
default_config_hash: tBaSkG3CaeSEpEZhLsNOBP58k2UVhfIMU0Y-kMr929w
id: node.news_item.field_news_item_updating_news
field_name: field_news_item_updating_news
entity_type: node
bundle: news_item
label: Content
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:paragraph'
handler_settings:
target_bundles:
news_update: news_update
negate: 0
target_bundles_drag_drop:
news_update:
weight: 52
enabled: true
field_type: entity_reference_revisions
Loading