Skip to content

Commit

Permalink
Merge pull request #24 from dof-dss/pps-views
Browse files Browse the repository at this point in the history
Pps views
  • Loading branch information
soda736 authored Aug 2, 2024
2 parents 274aa5a + 9de0b7a commit 9d40289
Show file tree
Hide file tree
Showing 26 changed files with 1,785 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: 7df1dd36-c9ef-4ed5-90af-dffd44654c21
langcode: en
status: true
dependencies:
config:
- views.view.news_search
module:
- system
- views
theme:
- pps_theme
id: exposedformnews_searchnews_search_page
theme: pps_theme
region: search_facets
weight: -13
provider: null
plugin: 'views_exposed_filter_block:news_search-news_search_page'
settings:
id: 'views_exposed_filter_block:news_search-news_search_page'
label: ''
label_display: '0'
provider: views
views_label: ''
visibility:
request_path:
id: request_path
negate: false
context_mapping: { }
pages: "/news\r\n/news/date/*"
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ visibility:
request_path:
id: request_path
negate: true
pages: "/legal-guidance\r\n/legal-guidance/date/*\r\n/legal-guidance/type/*\r\n/search\r\n/search*\r\n/documents\r\n/documents/date/*\r\n/documents/type/*"
pages: "/legal-guidance\r\n/legal-guidance/date/*\r\n/legal-guidance/type/*\r\n/legal-guidance/letter/*\r\n/search\r\n/search*\r\n/documents\r\n/documents/date/*\r\n/documents/type/*\r\n/news\r\n/news/date/*"
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
uuid: a710d69d-b77a-435e-9701-580bee796dcc
langcode: en
status: true
dependencies:
config:
- views.view.news
module:
- node
- views
theme:
- pps_theme
id: pps_theme_views_block__news_latest_news_2
theme: pps_theme
region: sidebar_second
weight: 0
provider: null
plugin: 'views_block:news-latest_news'
settings:
id: 'views_block:news-latest_news'
label: 'Latest news'
label_display: visible
provider: views
context_mapping: { }
views_label: 'Latest news'
items_per_page: none
visibility:
'entity_bundle:node':
id: 'entity_bundle:node'
negate: false
context_mapping:
node: '@node.node_route_context:node'
bundles:
news: news
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 110c8ee8-420a-4a2f-a4a1-3177de0a522d
langcode: en
status: true
dependencies:
config:
- views.view.news
module:
- views
theme:
- pps_theme
id: pps_theme_views_block__news_latest_news_home
theme: pps_theme
region: top_first
weight: 0
provider: null
plugin: 'views_block:news-latest_news_home'
settings:
id: 'views_block:news-latest_news_home'
label: News
label_display: visible
provider: views
views_label: News
items_per_page: none
visibility: { }
29 changes: 29 additions & 0 deletions project/config/pps/config/block.block.publicationdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: 25454e1f-8b7d-48e9-a0c6-ad4f28eb7aed
langcode: en
status: true
dependencies:
config:
- facets.facet.publication_date
module:
- facets
- system
theme:
- pps_theme
id: publicationdate
theme: pps_theme
region: search_facets
weight: -11
provider: null
plugin: 'facet_block:publication_date'
settings:
id: 'facet_block:publication_date'
label: Date
label_display: visible
provider: facets
block_id: publicationdate
visibility:
request_path:
id: request_path
negate: false
context_mapping: { }
pages: "/news\r\n/news/date/*"
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ hidden:
field_teaser: true
langcode: true
links: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
uuid: 1864bce6-e52b-4415-9620-49620baf418c
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.search_index
- field.field.node.news.body
- field.field.node.news.field_meta_tags
- field.field.node.news.field_news_type
- field.field.node.news.field_photo
- field.field.node.news.field_published_date
- field.field.node.news.field_teaser
- node.type.news
module:
- datetime
- layout_builder
- user
third_party_settings:
layout_builder:
enabled: false
allow_custom: false
id: node.news.search_index
targetEntityType: node
bundle: news
mode: search_index
content:
field_published_date:
type: datetime_default
label: hidden
settings:
timezone_override: ''
format_type: unity_format
third_party_settings: { }
weight: 0
region: content
hidden:
body: true
content_moderation_control: true
field_meta_tags: true
field_news_type: true
field_photo: true
field_teaser: true
langcode: true
links: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,51 @@ dependencies:
- field.field.node.news.field_teaser
- node.type.news
module:
- text
- datetime
- user
id: node.news.teaser
targetEntityType: node
bundle: news
mode: teaser
content:
body:
type: text_summary_or_trimmed
field_news_type:
type: entity_reference_label
label: hidden
settings:
trim_length: 600
link: false
third_party_settings: { }
weight: 101
weight: 2
region: content
links:
settings: { }
field_photo:
type: entity_reference_entity_view
label: hidden
settings:
view_mode: article_full
link: false
third_party_settings: { }
weight: 0
region: content
field_published_date:
type: datetime_default
label: hidden
settings:
timezone_override: ''
format_type: unity_format
third_party_settings: { }
weight: 1
region: content
field_teaser:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 100
weight: 3
region: content
hidden:
body: true
content_moderation_control: true
field_meta_tags: true
field_news_type: true
field_photo: true
field_published_date: true
field_teaser: true
langcode: true
links: true
search_api_excerpt: true
2 changes: 2 additions & 0 deletions project/config/pps/config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ module:
token: 0
token_filter: 0
toolbar: 0
twig_field_value: 0
twig_tweak: 0
ultimate_cron: 0
unity_breadcrumbs: 0
unity_common: 0
unity_frontpage: 0
unity_image_styles: 0
Expand Down
13 changes: 4 additions & 9 deletions project/config/pps/config/facets.facet.a_z.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ widget:
type: glossaryaz
config:
show_count: 0
enable_default_theme: 1
enable_default_theme: 0
empty_behavior:
behavior: none
only_visible_when_facet_source_is_visible: false
Expand All @@ -49,15 +49,10 @@ processor_configs:
exclude: '0,1,2,3,4,5,6,7,8,9'
regex: false
invert: false
glossaryaz_all_items_processor:
processor_id: glossaryaz_all_items_processor
weights:
build: -4
settings: { }
glossaryaz_pad_items_processor:
processor_id: glossaryaz_pad_items_processor
weights:
build: 10
build: -7
settings: { }
glossaryaz_widget_order:
processor_id: glossaryaz_widget_order
Expand Down Expand Up @@ -88,11 +83,11 @@ processor_configs:
hierarchy_processor:
processor_id: hierarchy_processor
weights:
build: 7
build: -2
settings: { }
url_processor_handler:
processor_id: url_processor_handler
weights:
pre_query: 50
build: -5
build: -10
settings: { }
80 changes: 80 additions & 0 deletions project/config/pps/config/facets.facet.publication_date.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
uuid: 550cf797-9e91-41f0-9f06-d26a3e539c60
langcode: en
status: true
dependencies:
config:
- search_api.index.news
- views.view.news_search
module:
- facets_pretty_paths
- search_api
third_party_settings:
facets_pretty_paths:
coder: default_coder
id: publication_date
name: Date
weight: 0
min_count: 1
missing: false
missing_label: others
url_alias: date
facet_source_id: 'search_api:views_page__news_search__news_search_page'
field_identifier: field_published_date
query_operator: and
hard_limit: 0
exclude: false
use_hierarchy: false
keep_hierarchy_parents_active: false
hierarchy:
type: taxonomy
config: { }
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
widget:
type: links
config:
show_numbers: true
soft_limit: 20
show_reset_link: false
reset_text: 'Show all'
hide_reset_when_no_selection: false
soft_limit_settings:
show_less_label: 'Show fewer'
show_more_label: 'Show more'
empty_behavior:
behavior: none
only_visible_when_facet_source_is_visible: true
show_only_one_result: false
show_title: false
processor_configs:
active_widget_order:
processor_id: active_widget_order
weights:
sort: 20
settings:
sort: ASC
date_facet_drilldown:
processor_id: date_facet_drilldown
weights:
build: 1
settings: { }
date_item:
processor_id: date_item
weights:
build: 35
settings:
date_display: actual_date
granularity: 6
date_format: ''
raw_value_widget_order:
processor_id: raw_value_widget_order
weights:
sort: 50
settings:
sort: DESC
url_processor_handler:
processor_id: url_processor_handler
weights:
pre_query: 50
build: 15
settings: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
uuid: 501a824f-9524-40cf-9898-49e85bf41e54
langcode: en
status: true
dependencies: { }
id: search_api__views_page__news_search__news_search_page
name: 'search_api:views_page__news_search__news_search_page'
filter_key: ''
url_processor: facets_pretty_paths
breadcrumb:
active: true
before: false
group: false
Loading

0 comments on commit 9d40289

Please sign in to comment.