Add events list view

This commit is contained in:
Oliver Davies 2024-04-10 00:05:47 +01:00
parent 5639baba18
commit ff0a7246e5
2 changed files with 669 additions and 0 deletions

View file

@ -8,11 +8,91 @@ dependencies:
- field.field.node.talk.field_slides
- field.field.node.talk.field_video
- node.type.talk
- views.view.events
module:
- layout_builder
- layout_discovery
- speakerdeck_field
- text
- user
- video_embed_field
- views
third_party_settings:
layout_builder:
enabled: true
allow_custom: false
sections:
-
layout_id: layout_onecol
layout_settings:
label: ''
components:
0a75c046-b32b-46a3-9af8-436cd42eeec9:
uuid: 0a75c046-b32b-46a3-9af8-436cd42eeec9
region: content
configuration:
id: 'field_block:node:talk:body'
label_display: '0'
context_mapping:
entity: layout_builder.entity
formatter:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
additional: { }
f3aef3ff-7ff0-4010-ab9c-3a7665114495:
uuid: f3aef3ff-7ff0-4010-ab9c-3a7665114495
region: content
configuration:
id: 'field_block:node:talk:field_slides'
label_display: '0'
context_mapping:
entity: layout_builder.entity
formatter:
type: speakerdeck_formatter
label: above
settings: { }
third_party_settings: { }
weight: 2
additional: { }
ba4f6447-480f-49cb-9578-39eb0f39f83e:
uuid: ba4f6447-480f-49cb-9578-39eb0f39f83e
region: content
configuration:
id: 'field_block:node:talk:field_video'
label: Video
label_display: visible
provider: layout_builder
context_mapping:
entity: layout_builder.entity
view_mode: view_mode
formatter:
type: video_embed_field_video
label: above
settings:
autoplay: false
responsive: true
width: 854
height: 480
third_party_settings: { }
weight: 4
additional: { }
323774a5-0f02-45b0-af4c-144edd2e96a2:
uuid: 323774a5-0f02-45b0-af4c-144edd2e96a2
region: content
configuration:
id: 'views_block:events-block_1'
label: ''
label_display: visible
provider: views
context_mapping: { }
views_label: ''
items_per_page: none
weight: 5
additional: { }
third_party_settings: { }
id: node.talk.default
targetEntityType: node
bundle: talk

View file

@ -0,0 +1,589 @@
uuid: a8d2620c-1519-42ff-8f47-87403038893f
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_date
- field.storage.paragraph.field_event_name
- field.storage.paragraph.field_is_online
- field.storage.paragraph.field_location
- field.storage.paragraph.field_url
- node.type.talk
- paragraphs.paragraphs_type.event
module:
- datetime
- link
- node
- paragraphs
id: events
label: Events
module: views
description: ''
tag: ''
base_table: paragraphs_item_field_data
base_field: id
display:
default:
id: default
display_title: Default
display_plugin: default
position: 0
display_options:
title: Events
fields:
parent_id:
id: parent_id
table: paragraphs_item_field_data
field: parent_id
relationship: none
group_type: group
admin_label: ''
entity_type: paragraph
entity_field: parent_id
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: string
settings: { }
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
field_url:
id: field_url
table: paragraph__field_url
field: field_url
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: true
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: uri
type: link
settings:
trim_length: 80
url_only: true
url_plain: true
rel: nofollow
target: '0'
group_column: ''
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
field_event_name:
id: field_event_name
table: paragraph__field_event_name
field: field_event_name
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: true
path: '{{ field_url }}'
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: string
settings: { }
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
field_location:
id: field_location
table: paragraph__field_location
field: field_location
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: false
alter:
alter_text: true
text: 'in {{ field_location }}'
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: string
settings: { }
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
field_date:
id: field_date
table: paragraph__field_date
field: field_date
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: false
alter:
alter_text: true
text: '- {{ field_date }}'
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: medium
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
field_is_online:
id: field_is_online
table: paragraph__field_is_online
field: field_is_online
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: ''
exclude: false
alter:
alter_text: true
text: '{% if field_is_online__value is same as "1" %}(online){% endif %}'
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: boolean
settings:
format: default
format_custom_false: ''
format_custom_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: none
options: { }
cache:
type: tag
options: { }
empty: { }
sorts:
field_date_value:
id: field_date_value
table: paragraph__field_date
field: field_date_value
relationship: none
group_type: group
admin_label: ''
plugin_id: datetime
order: DESC
expose:
label: ''
field_identifier: ''
exposed: false
granularity: day
arguments:
nid:
id: nid
table: node_field_data
field: nid
relationship: reverse__node__field_events
group_type: group
admin_label: ''
entity_type: node
entity_field: nid
plugin_id: node_nid
default_action: default
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: node
default_argument_options: { }
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: true
validate:
type: 'entity:node'
fail: 'not found'
validate_options:
bundles:
talk: talk
access: false
operation: view
multiple: 0
break_phrase: false
not: false
filters:
status:
id: status
table: paragraphs_item_field_data
field: status
entity_type: paragraph
entity_field: status
plugin_id: boolean
value: '1'
group: 1
expose:
operator: ''
type:
id: type
table: paragraphs_item_field_data
field: type
entity_type: paragraph
entity_field: type
plugin_id: bundle
value:
event: event
style:
type: html_list
options:
grouping: { }
row_class: ''
default_row_class: true
type: ul
wrapper_class: item-list
class: ''
row:
type: fields
options:
default_field_elements: false
inline:
field_event_name: field_event_name
field_date: field_date
field_is_online: field_is_online
field_location: field_location
separator: ''
hide_empty: false
query:
type: views_query
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
replica: false
query_tags: { }
relationships:
reverse__node__field_events:
id: reverse__node__field_events
table: paragraphs_item_field_data
field: reverse__node__field_events
relationship: none
group_type: group
admin_label: field_events
entity_type: paragraph
plugin_id: entity_reverse
required: true
header: { }
footer: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
tags:
- 'config:field.storage.paragraph.field_date'
- 'config:field.storage.paragraph.field_event_name'
- 'config:field.storage.paragraph.field_is_online'
- 'config:field.storage.paragraph.field_location'
- 'config:field.storage.paragraph.field_url'
block_1:
id: block_1
display_title: Block
display_plugin: block
position: 1
display_options:
display_extenders: { }
block_hide_empty: true
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
tags:
- 'config:field.storage.paragraph.field_date'
- 'config:field.storage.paragraph.field_event_name'
- 'config:field.storage.paragraph.field_is_online'
- 'config:field.storage.paragraph.field_location'
- 'config:field.storage.paragraph.field_url'