Skip to content

Commit

Permalink
Add 'all events' view
Browse files Browse the repository at this point in the history
Fixes #105
  • Loading branch information
opdavies committed Jan 8, 2021
1 parent 0e9c165 commit 7a052cf
Show file tree
Hide file tree
Showing 8 changed files with 251 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/block.block.aboutus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
id: aboutus
theme: phpsouthwales
region: content
weight: -5
weight: -6
provider: null
plugin: 'block_content:aa797092-27f4-4a3c-ab26-7b6d577cccd6'
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/block.block.phpsouthwales_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _core:
id: phpsouthwales_content
theme: phpsouthwales
region: content
weight: 0
weight: -1
provider: null
plugin: system_main_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/block.block.phpsouthwales_help.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _core:
id: phpsouthwales_help
theme: phpsouthwales
region: content
weight: -2
weight: -3
provider: null
plugin: help_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/block.block.phpsouthwales_local_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _core:
id: phpsouthwales_local_actions
theme: phpsouthwales
region: content
weight: -1
weight: -2
provider: null
plugin: local_actions_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/block.block.phpsouthwales_local_tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _core:
id: phpsouthwales_local_tasks
theme: phpsouthwales
region: content
weight: -3
weight: -4
provider: null
plugin: local_tasks_block
settings:
Expand Down
2 changes: 1 addition & 1 deletion config/block.block.phpsouthwales_page_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _core:
id: phpsouthwales_page_title
theme: phpsouthwales
region: content
weight: -4
weight: -5
provider: null
plugin: page_title_block
settings:
Expand Down
30 changes: 30 additions & 0 deletions config/block.block.views_block__events_block_1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
uuid: 3fb2bf94-6f99-4612-97af-f96a583b6ac5
langcode: en
status: true
dependencies:
config:
- views.view.events
module:
- system
- views
theme:
- phpsouthwales
id: views_block__events_block_1
theme: phpsouthwales
region: content
weight: 1
provider: null
plugin: 'views_block:events-block_1'
settings:
id: 'views_block:events-block_1'
label: ''
provider: views
label_display: '0'
views_label: ''
items_per_page: none
visibility:
request_path:
id: request_path
pages: /node/100
negate: false
context_mapping: { }
215 changes: 215 additions & 0 deletions config/views.view.events.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
uuid: 89606460-0f0f-406b-a2b8-e66fbc13f0b8
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- node.type.event
module:
- node
- user
id: events
label: Events
module: views
description: ''
tag: ''
base_table: node_field_data
base_field: nid
display:
default:
display_plugin: default
id: default
display_title: Master
position: 0
display_options:
access:
type: perm
options:
perm: 'access content'
cache:
type: tag
options: { }
query:
type: views_query
options:
disable_sql_rewrite: false
distinct: false
replica: false
query_comment: ''
query_tags: { }
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
pager:
type: full
options:
items_per_page: 5
offset: 0
id: 0
total_pages: null
tags:
previous: '‹ Previous'
next: 'Next ›'
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
style:
type: default
row:
type: 'entity:node'
options:
relationship: none
view_mode: teaser
fields:
title:
id: title
table: node_field_data
field: title
settings:
link_to_entity: true
plugin_id: field
relationship: none
group_type: group
admin_label: ''
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: 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
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
filters:
status:
value: '1'
table: node_field_data
field: status
plugin_id: boolean
entity_type: node
entity_field: status
id: status
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
group: 1
type:
id: type
table: node_field_data
field: type
value:
event: event
entity_type: node
entity_field: type
plugin_id: bundle
expose:
operator_limit_selection: false
operator_list: { }
sorts:
created:
id: created
table: node_field_data
field: created
order: DESC
entity_type: node
entity_field: created
plugin_id: date
relationship: none
group_type: group
admin_label: ''
exposed: false
expose:
label: ''
granularity: second
title: Events
header: { }
footer: { }
empty: { }
relationships: { }
arguments: { }
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags: { }
block_1:
display_plugin: block
id: block_1
display_title: Block
position: 1
display_options:
display_extenders: { }
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags: { }

0 comments on commit 7a052cf

Please sign in to comment.