Closed willguv closed 7 months ago
Simplest method would be to edit the news view. Heres a quick test I did, seems an obviuous thing that should be there. (To test, you'll need to replace the UUID with your localgov_news_list view UUID, or recreate by adding a feed display and attaching it to the all news list).
uuid: db10eddb-2803-4dc5-b5ea-21950d638209
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.storage.node.localgov_news_date
- node.type.localgov_news_article
module:
- datetime
- node
- user
_core:
default_config_hash: AhTarz-WzPrNzH4OJeQeYuLE-OsbIWd3wxrkUaB8Q-w
id: localgov_news_list
label: 'News list'
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
display:
default:
id: default
display_title: Master
display_plugin: default
position: 0
display_options:
title: 'News list'
fields:
title:
id: title
table: node_field_data
field: title
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: title
plugin_id: field
label: ''
exclude: false
alter:
alter_text: false
make_link: false
absolute: false
word_boundary: false
ellipsis: false
strip_tags: false
trim: false
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: true
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
pager:
type: full
options:
offset: 0
items_per_page: 10
total_pages: null
id: 0
tags:
next: 'Next ›'
previous: '‹ Previous'
first: '« First'
last: 'Last »'
expose:
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 25, 50'
items_per_page_options_all: false
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
quantity: 9
exposed_form:
type: basic
options:
submit_button: Apply
reset_button: false
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
access:
type: perm
options:
perm: 'access content'
cache:
type: tag
options: { }
empty: { }
sorts:
localgov_news_date_value:
id: localgov_news_date_value
table: node__localgov_news_date
field: localgov_news_date_value
relationship: none
group_type: group
admin_label: ''
plugin_id: datetime
order: DESC
expose:
label: ''
field_identifier: localgov_news_date_value
exposed: false
granularity: second
created:
id: created
table: node_field_data
field: created
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: created
plugin_id: date
order: DESC
expose:
label: ''
field_identifier: ''
exposed: false
granularity: second
nid:
id: nid
table: node_field_data
field: nid
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: nid
plugin_id: standard
order: DESC
expose:
label: ''
field_identifier: ''
exposed: false
arguments:
localgov_newsroom_target_id:
id: localgov_newsroom_target_id
table: node__localgov_newsroom
field: localgov_newsroom_target_id
relationship: none
group_type: group
admin_label: ''
plugin_id: numeric
default_action: 'not found'
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
not: false
filters:
status:
id: status
table: node_field_data
field: status
entity_type: node
entity_field: status
plugin_id: boolean
value: '1'
group: 1
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
type:
id: type
table: node_field_data
field: type
entity_type: node
entity_field: type
plugin_id: bundle
value:
localgov_news_article: localgov_news_article
group: 1
expose:
operator_limit_selection: false
operator_list: { }
filter_groups:
operator: AND
groups:
1: AND
style:
type: default
row:
type: 'entity:node'
options:
view_mode: teaser
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: true
replica: false
query_tags: { }
relationships: { }
css_class: 'view--teasers lgd-teaser-list'
use_ajax: false
header: { }
footer: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags: { }
all_news:
id: all_news
display_title: 'All news'
display_plugin: embed
position: 1
display_options:
display_description: 'All news (excluding featured)'
display_comment: 'Query is altered in localgov_news.module.'
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags: { }
feed_1:
id: feed_1
display_title: Feed
display_plugin: feed
position: 3
display_options:
row:
type: node_rss
options: { }
display_extenders:
metatag_display_extender:
metatags: { }
tokenize: false
path: node/%node/feed.rss
displays:
all_news: all_news
default: '0'
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- 'user.node_grants:view'
- user.permissions
tags: { }
newsroom_entity_reference:
id: newsroom_entity_reference
display_title: 'Newsroom Entity Reference'
display_plugin: entity_reference
position: 3
display_options:
fields:
title:
id: title
table: node_field_data
field: title
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: title
plugin_id: field
label: ''
exclude: false
alter:
alter_text: false
make_link: false
absolute: false
word_boundary: false
ellipsis: false
strip_tags: false
trim: false
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: true
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
localgov_news_date:
id: localgov_news_date
table: node__localgov_news_date
field: localgov_news_date
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: datetime_default
settings:
timezone_override: ''
format_type: short
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
pager:
type: none
options:
offset: 0
arguments:
localgov_newsroom_target_id:
id: localgov_newsroom_target_id
table: node__localgov_newsroom
field: localgov_newsroom_target_id
relationship: none
group_type: group
admin_label: ''
plugin_id: numeric
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: node
default_argument_options: { }
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
not: false
filters:
status:
id: status
table: node_field_data
field: status
entity_type: node
entity_field: status
plugin_id: boolean
value: '1'
group: 1
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
type:
id: type
table: node_field_data
field: type
entity_type: node
entity_field: type
plugin_id: bundle
value:
localgov_news_article: localgov_news_article
group: 1
expose:
operator_limit_selection: false
operator_list: { }
filter_groups:
operator: AND
groups:
1: AND
style:
type: entity_reference
options:
search_fields:
title: title
localgov_news_date: localgov_news_date
row:
type: entity_reference
options:
default_field_elements: true
inline:
title: title
localgov_news_date: localgov_news_date
separator: ' - '
hide_empty: false
defaults:
relationships: false
fields: false
arguments: false
filters: false
filter_groups: false
relationships: { }
display_description: 'Restrict articles that can be referenced to the articles in the newsroom.'
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- 'user.node_grants:view'
- user.permissions
tags:
- 'config:field.storage.node.localgov_news_date'
Required for some services to send automated newsletters eg GovDelivery
Possibly useful instructions here https://devcollaborative.com/blog/how-add-rss-feed-drupal-website
Requested by North Devon