Oliver Davies
cbd1417b24
Sort the talks on the listing page solely by `field_event_date`. Prior to this commit, the page was using a custom sort plugin that attempts to show future talks followed by past talks, but also affect the order to show upcoming talks in an ascending order, followed by past dalks in the opposite (descending) order. This was not working as expected. For now, solely using the event date field is the simpler solution. In the future, I'll either re-attempt this or remove the code and simplify my codebase.
204 lines
5.1 KiB
YAML
204 lines
5.1 KiB
YAML
uuid: 084367da-8f26-48dc-bd0f-a5affcefa98f
|
|
langcode: en
|
|
status: true
|
|
dependencies:
|
|
config:
|
|
- core.entity_view_mode.node.teaser
|
|
- node.type.talk
|
|
- system.menu.main
|
|
module:
|
|
- datetime
|
|
- node
|
|
- user
|
|
id: talks
|
|
label: 'Talks and workshops'
|
|
module: views
|
|
description: ''
|
|
tag: ''
|
|
base_table: node_field_data
|
|
base_field: nid
|
|
display:
|
|
default:
|
|
id: default
|
|
display_title: Default
|
|
display_plugin: default
|
|
position: 0
|
|
display_options:
|
|
title: 'Talks and Workshops'
|
|
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: none
|
|
options:
|
|
offset: 0
|
|
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:
|
|
field_event_date_value:
|
|
id: field_event_date_value
|
|
table: node__field_event_date
|
|
field: field_event_date_value
|
|
relationship: none
|
|
group_type: group
|
|
admin_label: ''
|
|
plugin_id: datetime
|
|
order: DESC
|
|
expose:
|
|
label: ''
|
|
field_identifier: ''
|
|
exposed: false
|
|
granularity: hour
|
|
arguments: { }
|
|
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: ''
|
|
type:
|
|
id: type
|
|
table: node_field_data
|
|
field: type
|
|
entity_type: node
|
|
entity_field: type
|
|
plugin_id: bundle
|
|
value:
|
|
talk: talk
|
|
style:
|
|
type: default
|
|
options:
|
|
row_class: ''
|
|
default_row_class: true
|
|
uses_fields: false
|
|
row:
|
|
type: 'entity:node'
|
|
options:
|
|
view_mode: teaser
|
|
query:
|
|
type: views_query
|
|
options:
|
|
query_comment: ''
|
|
disable_sql_rewrite: false
|
|
distinct: false
|
|
replica: false
|
|
query_tags: { }
|
|
relationships: { }
|
|
header:
|
|
area:
|
|
id: area
|
|
table: views
|
|
field: area
|
|
relationship: none
|
|
group_type: group
|
|
admin_label: ''
|
|
plugin_id: text
|
|
empty: false
|
|
content:
|
|
value: '<p>Since September 2012, I have given [opdavies_talks:talk_count] public presentations and workshops at various conferences and meetups, in-person and remotely, on topics including PHP, Drupal, automated testing, Git, CSS, and systems administration.</p>'
|
|
format: basic_html
|
|
tokenize: false
|
|
footer: { }
|
|
display_extenders: { }
|
|
cache_metadata:
|
|
max-age: -1
|
|
contexts:
|
|
- 'languages:language_content'
|
|
- 'languages:language_interface'
|
|
- 'user.node_grants:view'
|
|
- user.permissions
|
|
tags: { }
|
|
page_1:
|
|
id: page_1
|
|
display_title: Page
|
|
display_plugin: page
|
|
position: 1
|
|
display_options:
|
|
display_extenders: { }
|
|
path: talks
|
|
menu:
|
|
type: normal
|
|
title: 'Talks and Workshops'
|
|
description: ''
|
|
weight: 0
|
|
enabled: false
|
|
expanded: false
|
|
menu_name: main
|
|
parent: ''
|
|
context: '0'
|
|
cache_metadata:
|
|
max-age: -1
|
|
contexts:
|
|
- 'languages:language_content'
|
|
- 'languages:language_interface'
|
|
- 'user.node_grants:view'
|
|
- user.permissions
|
|
tags: { }
|