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

SDSS-1299: Add Explore More options and display to News #466

Merged
merged 10 commits into from
Aug 28, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
- field.field.node.stanford_news.su_news_publishing_date
- field.field.node.stanford_news.su_news_source
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_explore_more_picker
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_media_mention
Expand All @@ -42,6 +43,7 @@ dependencies:
- scheduler
- stanford_intranet
- text
- viewfield
third_party_settings:
field_group:
group_media:
Expand Down Expand Up @@ -100,7 +102,7 @@ third_party_settings:
label: Taxonomy
region: content
parent_name: ''
weight: 6
weight: 7
format_type: details
format_settings:
classes: ''
Expand All @@ -111,12 +113,13 @@ third_party_settings:
required_fields: true
group_related_content:
children:
- su_sdss_person_ref
- su_sdss_related_content
label: 'Related Fields'
- su_sdss_explore_more_picker
- su_sdss_person_ref
label: 'Related Content'
region: content
parent_name: ''
weight: 3
weight: 6
format_type: details
format_settings:
classes: ''
Expand All @@ -132,31 +135,31 @@ mode: default
content:
publish_on:
type: datetime_timestamp_no_default
weight: 11
weight: 12
region: content
settings: { }
third_party_settings: { }
scheduler_settings:
weight: 10
weight: 11
region: content
settings: { }
third_party_settings: { }
stanford_intranet__access:
type: entity_access
weight: 8
weight: 9
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 7
weight: 8
region: content
settings:
display_label: true
third_party_settings: { }
su_metatags:
type: metatag_firehose
weight: 9
weight: 10
region: content
settings:
sidebar: true
Expand Down Expand Up @@ -187,7 +190,7 @@ content:
third_party_settings: { }
su_news_components:
type: layout_paragraphs
weight: 4
weight: 3
region: content
settings:
view_mode: default
Expand Down Expand Up @@ -222,7 +225,7 @@ content:
third_party_settings: { }
su_news_topics:
type: cshs
weight: 11
weight: 17
region: content
settings:
save_lineage: false
Expand All @@ -233,9 +236,15 @@ content:
required_depth: 0
none_label: '- Please select -'
third_party_settings: { }
su_sdss_explore_more_picker:
type: viewfield_select
weight: 23
region: content
settings: { }
third_party_settings: { }
su_sdss_media_contacts:
type: inline_entity_form_complex
weight: 12
weight: 4
region: content
settings:
form_mode: default
Expand All @@ -258,7 +267,7 @@ content:
force_single_cardinality: 0
su_sdss_media_mention:
type: boolean_checkbox
weight: 13
weight: 5
region: content
settings:
display_label: true
Expand All @@ -281,7 +290,7 @@ content:
third_party_settings: { }
su_sdss_news_focal_areas:
type: cshs
weight: 15
weight: 20
region: content
settings:
save_lineage: false
Expand All @@ -304,7 +313,7 @@ content:
third_party_settings: { }
su_sdss_news_organization:
type: cshs
weight: 13
weight: 18
region: content
settings:
save_lineage: false
Expand All @@ -317,7 +326,7 @@ content:
third_party_settings: { }
su_sdss_news_research_area:
type: cshs
weight: 14
weight: 19
region: content
settings:
save_lineage: false
Expand All @@ -330,7 +339,7 @@ content:
third_party_settings: { }
su_sdss_person_ref:
type: entity_reference_autocomplete
weight: 21
weight: 25
region: content
settings:
match_operator: CONTAINS
Expand All @@ -350,7 +359,7 @@ content:
third_party_settings: { }
su_shared_tags:
type: cshs
weight: 9
weight: 16
region: content
settings:
save_lineage: false
Expand All @@ -363,7 +372,7 @@ content:
third_party_settings: { }
syndication:
type: boolean_checkbox
weight: 54
weight: 13
region: content
settings:
display_label: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ dependencies:
- core.base_field_override.node.stanford_news.title
- field.field.node.stanford_news.layout_builder__layout
- field.field.node.stanford_news.stanford_intranet__access
- field.field.node.stanford_news.su_sdss_imported_news_sharing
- field.field.node.stanford_news.su_metatags
- field.field.node.stanford_news.su_news_banner
- field.field.node.stanford_news.su_news_banner_media_caption
Expand All @@ -17,7 +16,9 @@ dependencies:
- field.field.node.stanford_news.su_news_publishing_date
- field.field.node.stanford_news.su_news_source
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_explore_more_picker
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_imported_news_sharing
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_media_mention
- field.field.node.stanford_news.su_sdss_news_banner_caption
Expand Down Expand Up @@ -324,17 +325,29 @@ third_party_settings:
centered: centered-container
columns: flex-12-of-12
components:
6b464e2e-34de-472f-8efb-a0137690ae40:
uuid: 6b464e2e-34de-472f-8efb-a0137690ae40
5097835f-3373-42fd-9027-da8e1b253b40:
uuid: 5097835f-3373-42fd-9027-da8e1b253b40
region: main
configuration:
id: 'views_block:stanford_news-viewfield_block_1'
id: 'field_block:node:stanford_news:su_sdss_explore_more_picker'
label: 'Explore More'
label_display: visible
provider: views
context_mapping: { }
views_label: 'Explore More'
items_per_page: none
provider: layout_builder
context_mapping:
entity: layout_builder.entity
view_mode: view_mode
formatter:
type: viewfield_default
label: hidden
settings:
view_title: hidden
always_build_output: true
empty_view_title: hidden
third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
weight: 0
additional: { }
third_party_settings: { }
Expand Down Expand Up @@ -626,5 +639,6 @@ hidden:
stanford_intranet__access: true
su_metatags: true
su_news_source: true
su_sdss_explore_more_picker: true
su_sdss_imported_news_sharing: true
su_shared_tags: true
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- field.field.node.stanford_news.su_news_publishing_date
- field.field.node.stanford_news.su_news_source
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_explore_more_picker
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_media_mention
Expand Down Expand Up @@ -136,6 +137,7 @@ hidden:
stanford_intranet__access: true
su_metatags: true
su_news_dek: true
su_sdss_explore_more_picker: true
su_sdss_import_source: true
su_sdss_imported_news_sharing: true
su_sdss_media_contacts: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- field.field.node.stanford_news.su_news_publishing_date
- field.field.node.stanford_news.su_news_source
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_explore_more_picker
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_media_mention
Expand Down Expand Up @@ -183,6 +184,7 @@ hidden:
su_news_byline: true
su_news_components: true
su_news_dek: true
su_sdss_explore_more_picker: true
su_sdss_import_source: true
su_sdss_imported_news_sharing: true
su_sdss_media_contacts: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- field.field.node.stanford_news.su_news_publishing_date
- field.field.node.stanford_news.su_news_source
- field.field.node.stanford_news.su_news_topics
- field.field.node.stanford_news.su_sdss_explore_more_picker
- field.field.node.stanford_news.su_sdss_import_source
- field.field.node.stanford_news.su_sdss_media_contacts
- field.field.node.stanford_news.su_sdss_media_mention
Expand Down Expand Up @@ -222,6 +223,7 @@ hidden:
su_news_publishing_date: true
su_news_source: true
su_news_topics: true
su_sdss_explore_more_picker: true
su_sdss_import_source: true
su_sdss_imported_news_sharing: true
su_sdss_media_contacts: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
uuid: f86e1b21-0346-4fcf-b334-e645dc57a7ca
langcode: en
status: true
dependencies:
config:
- field.storage.node.su_sdss_explore_more_picker
- node.type.stanford_news
- views.view.explore_more_news
module:
- viewfield
id: node.stanford_news.su_sdss_explore_more_picker
field_name: su_sdss_explore_more_picker
entity_type: node
bundle: stanford_news
label: 'Options for Explore More'
description: 'Use this field to select how to populate the Explore More section at the bottom of the page. By default, the view will show 3 random articles. <b>Only News will be displayed in Explore More.</b>'
required: true
translatable: false
default_value:
-
target_uuid: 6bee2160-3fb2-4124-b681-990ef5b42804
display_id: explore_more_random
arguments: ''
items_to_display: ''
default_value_callback: ''
settings:
force_default: false
allowed_views:
explore_more_news: explore_more_news
stanford_shared_tags: '0'
stanford_basic_pages: '0'
su_block_edit_links: '0'
change_logs: '0'
content: '0'
block_content: '0'
stanford_courses: '0'
editoria11y_dismissals: '0'
editoria11y_results: '0'
stanford_events: '0'
stanford_events_past: '0'
stanford_events_schedule: '0'
stanford_event_series: '0'
events_feeds: '0'
events_this_week: '0'
authmap: '0'
files: '0'
locked_content: '0'
sdss_manage_content_bytype: '0'
media: '0'
media_library: '0'
stanford_news: '0'
news_research_search: '0'
stanford_person: '0'
policies: '0'
stanford_publications: '0'
redirect: '0'
rss_feeds: '0'
samlauth_map: '0'
sdss_news_sharing: '0'
search: '0'
taxonomy_term_pages: '0'
user_admin_people: '0'
allowed_display_types:
viewfield_block: viewfield_block
block: '0'
default: '0'
feed: '0'
page: '0'
rest_export: '0'
handler: 'default:view'
handler_settings:
target_bundles: null
auto_create: false
field_type: viewfield
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 9155d083-6b96-4d35-acbe-455ee1b17e2c
langcode: en
status: true
dependencies:
module:
- node
- viewfield
- views
id: node.su_sdss_explore_more_picker
field_name: su_sdss_explore_more_picker
entity_type: node
type: viewfield
settings:
target_type: view
module: viewfield
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Loading
Loading