filters on archive pages, type de projet & type devenemtn now linked to filtered archive views

This commit is contained in:
2026-09-17 12:51:01 +02:00
parent b51b3479a7
commit af2a344d10
15 changed files with 329 additions and 44 deletions
-29
View File
@@ -1,29 +0,0 @@
uuid: 013d1fb2-1c81-4b8b-93ca-0da2e401fd88
langcode: fr
status: false
dependencies:
module:
- ctools_block
theme:
- leshed
id: leshed_titre
theme: leshed
region: content
weight: 0
provider: null
plugin: 'entity_field:node:title'
settings:
id: 'entity_field:node:title'
label: Titre
label_display: '0'
provider: ctools_block
context_mapping:
entity: '@node.node_route_context:node'
formatter:
type: string
weight: 0
label: above
settings:
link_to_entity: false
third_party_settings: { }
visibility: { }
@@ -0,0 +1,31 @@
uuid: 60b89953-e159-4815-9c83-f51e13cb9518
langcode: fr
status: true
dependencies:
module:
- context
- system
theme:
- leshed
id: leshed_titredelapage
theme: leshed
region: header_bottom
weight: -1
provider: null
plugin: page_title_block
settings:
id: page_title_block
label: 'Titre de la page'
label_display: '0'
provider: core
visibility:
request_path:
id: request_path
negate: false
pages: "/projets/*\r\n/evenements/*"
view_inclusion:
id: view_inclusion
negate: false
view_inclusion:
view-archives-page_1: view-archives-page_1
view-archives-page_2: view-archives-page_2
@@ -68,7 +68,7 @@ content:
type: entity_reference_label
label: hidden
settings:
link: false
link: true
third_party_settings: { }
weight: 1
region: content
@@ -114,7 +114,7 @@ content:
type: entity_reference_label
label: hidden
settings:
link: false
link: true
third_party_settings: { }
weight: 1
region: content
@@ -85,7 +85,7 @@ content:
type: entity_reference_label
label: hidden
settings:
link: false
link: true
third_party_settings: { }
weight: 3
region: content
@@ -87,7 +87,7 @@ content:
type: entity_reference_label
label: hidden
settings:
link: false
link: true
third_party_settings: { }
weight: 3
region: content
@@ -39,7 +39,7 @@ content:
label: hidden
settings: { }
third_party_settings: { }
weight: 3
weight: 5
region: content
field_artiste_s_invite_s:
type: entity_reference_label
@@ -66,7 +66,7 @@ content:
settings:
use_description_as_link_text: true
third_party_settings: { }
weight: 7
weight: 9
region: content
field_images:
type: image_caption
@@ -77,7 +77,14 @@ content:
image_loading:
attribute: lazy
third_party_settings: { }
weight: 8
weight: 10
region: content
field_infos_pratiques:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 4
region: content
field_invite_accompagne_curate_p:
type: entity_reference_label
@@ -93,14 +100,14 @@ content:
settings:
link: false
third_party_settings: { }
weight: 4
weight: 6
region: content
field_portage:
type: list_default
label: above
settings: { }
third_party_settings: { }
weight: 5
weight: 7
region: content
field_projet_s_lie_s:
type: entity_reference_label
@@ -108,11 +115,17 @@ content:
settings:
link: true
third_party_settings: { }
weight: 6
weight: 8
region: content
field_type_de_projet:
type: entity_reference_label
label: hidden
settings:
link: true
third_party_settings: { }
weight: 3
region: content
hidden:
field_infos_pratiques: true
field_type_de_projet: true
langcode: true
links: true
search_api_excerpt: true
@@ -77,7 +77,7 @@ content:
type: entity_reference_label
label: hidden
settings:
link: false
link: true
third_party_settings: { }
weight: 3
region: content
@@ -67,7 +67,7 @@ content:
type: entity_reference_label
label: hidden
settings:
link: false
link: true
third_party_settings: { }
weight: 2
region: content
+1
View File
@@ -60,6 +60,7 @@ module:
language: 0
layout_builder: 0
layout_discovery: 0
leshed_helpers: 0
leshed_svg_export: 0
link: 0
link_attributes: 0
+107 -1
View File
@@ -10,9 +10,11 @@ dependencies:
- node.type.projet
- system.menu.main
module:
- better_exposed_filters
- datetime
- datetime_range
- node
- taxonomy
- user
id: archives
label: Archives
@@ -40,7 +42,7 @@ display:
options:
offset: 0
exposed_form:
type: basic
type: bef
options:
submit_button: Appliquer
reset_button: false
@@ -49,6 +51,31 @@ display:
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
text_input_required: 'Sélectionner un filtre et cliquer sur Appliquer pour voir les résultats'
text_input_required_format: wysiwyg
bef:
general:
autosubmit: true
autosubmit_exclude_textfield: false
autosubmit_textfield_delay: 500
autosubmit_hide: true
input_required: false
allow_secondary: false
secondary_label: 'Options avancées'
secondary_open: false
reset_button_always_show: false
filter:
field_type_de_projet_target_id:
plugin_id: bef_links
advanced:
sort_options: false
rewrite:
filter_rewrite_values: ''
filter_rewrite_values_key: false
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: false
select_all_none: false
access:
type: perm
options:
@@ -238,6 +265,43 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
arguments:
tid:
id: tid
table: taxonomy_index
field: tid
relationship: none
group_type: group
admin_label: ''
plugin_id: taxonomy_index_tid
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: true
title: 'Les projets | {{ arguments.tid }}'
default_argument_type: fixed
default_argument_options:
argument: ''
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: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
add_table: false
require_value: false
reduce_duplicates: false
filters:
status:
id: status
@@ -318,10 +382,12 @@ display:
style: false
row: false
fields: false
arguments: false
filters: false
filter_groups: false
css_class: 'views-archives views-archives-projets'
display_description: ''
exposed_block: true
display_extenders: { }
path: projets
menu:
@@ -338,6 +404,7 @@ display:
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- 'user.node_grants:view'
- user.permissions
tags: { }
@@ -415,6 +482,43 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
arguments:
tid:
id: tid
table: taxonomy_index
field: tid
relationship: none
group_type: group
admin_label: ''
plugin_id: taxonomy_index_tid
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: true
title: 'Les événements | {{ arguments.tid }}'
default_argument_type: fixed
default_argument_options:
argument: ''
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: false
validate:
type: none
fail: 'not found'
validate_options: { }
break_phrase: false
add_table: false
require_value: false
reduce_duplicates: false
filters:
status:
id: status
@@ -495,6 +599,7 @@ display:
style: false
row: false
fields: false
arguments: false
filters: false
filter_groups: false
css_class: 'views-archives views-archives-evenements'
@@ -515,6 +620,7 @@ display:
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- 'user.node_grants:view'
- user.permissions
tags: