added combined_paragraphes for views search

This commit is contained in:
2025-07-16 17:10:00 +02:00
parent ae6ca43e4b
commit e4e2806ca6
11 changed files with 252 additions and 67 deletions
@@ -0,0 +1,9 @@
_core:
default_config_hash: YzcR5HoCy8cZY5a4LLt3n4TB427E6JI5-XBV0Q419e8
enforced_configs:
'config_enforce:registry:computed_token_field':
config_directory: config/install
enforcement_level: 20
config_form_uri: /en/admin/config/development/config_enforce/enforced_configs
hash: intentionally_invalid
langcode: fr
@@ -5,6 +5,7 @@ dependencies:
config:
- field.field.node.ressource.field_actu_liee
- field.field.node.ressource.field_auteur_s_
- field.field.node.ressource.field_combined_paragraphs
- field.field.node.ressource.field_date_de_parution
- field.field.node.ressource.field_edition
- field.field.node.ressource.field_fichiers
@@ -22,6 +23,7 @@ dependencies:
- node.type.ressource
module:
- autocomplete_deluxe
- computed_field
- datetime
- field_group
- file
@@ -163,6 +165,12 @@ content:
rows: 5
placeholder: ''
third_party_settings: { }
field_combined_paragraphs:
type: computed_string_widget
weight: 142
region: content
settings: { }
third_party_settings: { }
field_date_de_parution:
type: datetime_default
weight: 130
@@ -5,6 +5,7 @@ dependencies:
config:
- field.field.node.ressource.field_actu_liee
- field.field.node.ressource.field_auteur_s_
- field.field.node.ressource.field_combined_paragraphs
- field.field.node.ressource.field_date_de_parution
- field.field.node.ressource.field_edition
- field.field.node.ressource.field_fichiers
@@ -39,7 +40,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 14
weight: 13
region: content
field_auteur_s_:
type: text_default
@@ -70,7 +71,7 @@ content:
settings:
use_description_as_link_text: true
third_party_settings: { }
weight: 8
weight: 7
region: content
field_images:
type: image_caption
@@ -81,7 +82,7 @@ content:
image_loading:
attribute: lazy
third_party_settings: { }
weight: 9
weight: 8
region: content
field_liens:
type: link
@@ -93,7 +94,7 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 10
weight: 9
region: content
field_mots_clefs:
type: entity_reference_label
@@ -101,7 +102,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 15
weight: 14
region: content
field_projets_liee:
type: entity_reference_label
@@ -109,7 +110,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 13
weight: 12
region: content
field_ress:
type: entity_reference_label
@@ -117,7 +118,7 @@ content:
settings:
link: true
third_party_settings: { }
weight: 12
weight: 11
region: content
field_sous_titre:
type: string
@@ -134,7 +135,7 @@ content:
view_mode: default
link: ''
third_party_settings: { }
weight: 16
weight: 15
region: content
field_type_de_media:
type: entity_reference_label
@@ -161,7 +162,7 @@ content:
width: 854
height: 480
third_party_settings: { }
weight: 11
weight: 10
region: content
title:
type: title
@@ -173,7 +174,9 @@ content:
weight: 0
region: content
hidden:
computed_textes_paragraphes: true
created: true
field_combined_paragraphs: true
langcode: true
links: true
search_api_excerpt: true
@@ -6,6 +6,7 @@ dependencies:
- core.entity_view_mode.node.sidebar
- field.field.node.ressource.field_actu_liee
- field.field.node.ressource.field_auteur_s_
- field.field.node.ressource.field_combined_paragraphs
- field.field.node.ressource.field_date_de_parution
- field.field.node.ressource.field_edition
- field.field.node.ressource.field_fichiers
@@ -92,8 +93,10 @@ content:
weight: 1
region: content
hidden:
computed_textes_paragraphes: true
created: true
field_actu_liee: true
field_combined_paragraphs: true
field_edition: true
field_fichiers: true
field_liens: true
@@ -6,6 +6,7 @@ dependencies:
- core.entity_view_mode.node.teaser
- field.field.node.ressource.field_actu_liee
- field.field.node.ressource.field_auteur_s_
- field.field.node.ressource.field_combined_paragraphs
- field.field.node.ressource.field_date_de_parution
- field.field.node.ressource.field_edition
- field.field.node.ressource.field_fichiers
@@ -31,6 +32,14 @@ targetEntityType: node
bundle: ressource
mode: teaser
content:
computed_textes_paragraphes:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 10
region: content
field_auteur_s_:
type: text_default
label: hidden
@@ -58,12 +67,12 @@ content:
type: image_delta_formatter
label: hidden
settings:
deltas: '0'
image_style: large
image_link: content
image_link: ''
deltas: 0
deltas_reversed: false
image_loading:
attribute: lazy
deltas_reversed: 0
third_party_settings: { }
weight: 0
region: content
@@ -79,7 +88,7 @@ content:
type: string
label: hidden
settings:
link_to_entity: true
link_to_entity: false
third_party_settings: { }
weight: 4
region: content
@@ -116,6 +125,7 @@ content:
hidden:
created: true
field_actu_liee: true
field_combined_paragraphs: true
field_fichiers: true
field_liens: true
field_projets_liee: true
+2 -1
View File
@@ -19,6 +19,8 @@ module:
breakpoint: 0
bulkdelete: 0
ckeditor: 0
computed_field: 0
computed_token_field: 0
config: 0
config_devel: 0
config_filter: 0
@@ -124,7 +126,6 @@ module:
update: 0
url_to_video_filter: 0
user: 0
video_embed_dailymotion: 0
video_embed_field: 0
views_bulk_edit: 0
views_bulk_operations: 0
@@ -0,0 +1,22 @@
uuid: ad8d5056-6727-4e36-9e83-6d04fe409af6
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_combined_paragraphs
- node.type.ressource
module:
- computed_field
id: node.ressource.field_combined_paragraphs
field_name: field_combined_paragraphs
entity_type: node
bundle: ressource
label: combined_paragraphs
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
token_value: '[node:field_edition:value] [node:field_sous_titre:value] [node:body] [node:field_auteur_s_:value] [node:field_textes] [node:field_accroche:value]'
field_type: computed_string_long
@@ -0,0 +1,20 @@
uuid: f2f59d94-de34-42cb-b4a8-3223b9430157
langcode: fr
status: true
dependencies:
module:
- computed_field
- node
id: node.field_combined_paragraphs
field_name: field_combined_paragraphs
entity_type: node
type: computed_string_long
settings:
case_sensitive: false
module: computed_field
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
+19 -52
View File
@@ -6,7 +6,7 @@ dependencies:
- core.entity_view_mode.node.teaser
- field.storage.node.body
- field.storage.node.field_auteur_s_
- field.storage.node.field_date_de_parution
- field.storage.node.field_combined_paragraphs
- field.storage.node.field_edition
- field.storage.node.field_liens
- field.storage.node.field_mots_clefs
@@ -17,6 +17,7 @@ dependencies:
- taxonomy.vocabulary.type_de_media
- taxonomy.vocabulary.types_de_ressource
module:
- computed_field
- datetime
- link
- node
@@ -528,10 +529,10 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
field_date_de_parution:
id: field_date_de_parution
table: node__field_date_de_parution
field: field_date_de_parution
field_combined_paragraphs:
id: field_combined_paragraphs
table: node__field_combined_paragraphs
field: field_combined_paragraphs
relationship: none
group_type: group
admin_label: ''
@@ -561,7 +562,7 @@ display:
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
strip_tags: true
trim: false
preserve_tags: ''
html: false
@@ -578,9 +579,11 @@ display:
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: datetime_plain
type: computed_string
settings:
timezone_override: ''
sanitized: 1
cache_unit: '-1'
cache_duration: '1'
group_column: value
group_columns: { }
group_rows: true
@@ -835,7 +838,7 @@ display:
group_type: group
admin_label: ''
plugin_id: datetime
operator: '>='
operator: '='
value:
min: ''
max: ''
@@ -865,50 +868,18 @@ display:
min_placeholder: ''
max_placeholder: ''
placeholder: ''
is_grouped: true
is_grouped: false
group_info:
label: Date
label: ''
description: ''
identifier: field_date_de_parution_value
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items:
1:
title: '2022'
operator: between
value:
min: '2022-01-01 00:00:00'
max: '2023-01-01 00:00:00'
value: ''
type: date
2:
title: '2023'
operator: between
value:
min: '2023-01-01 00:00:00'
max: '2024-01-01 00:00:00'
value: ''
type: date
3:
title: '2024'
operator: between
value:
min: '2024-01-01 00:00:00'
max: '2025-01-01 00:00:00'
value: ''
type: date
4:
title: '2025'
operator: between
value:
min: '2025-01-01 00:00:00'
max: '2026-01-01 00:00:00'
value: ''
type: date
group_items: { }
combine:
id: combine
table: views
@@ -954,11 +925,7 @@ display:
default_group_multiple: { }
group_items: { }
fields:
title: title
field_auteur_s_: field_auteur_s_
body: body
field_sous_titre: field_sous_titre
field_edition: field_edition
field_combined_paragraphs: field_combined_paragraphs
filter_groups:
operator: AND
groups:
@@ -1003,7 +970,7 @@ display:
tags:
- 'config:field.storage.node.body'
- 'config:field.storage.node.field_auteur_s_'
- 'config:field.storage.node.field_date_de_parution'
- 'config:field.storage.node.field_combined_paragraphs'
- 'config:field.storage.node.field_edition'
- 'config:field.storage.node.field_liens'
- 'config:field.storage.node.field_mots_clefs'
@@ -1118,7 +1085,7 @@ display:
tags:
- 'config:field.storage.node.body'
- 'config:field.storage.node.field_auteur_s_'
- 'config:field.storage.node.field_date_de_parution'
- 'config:field.storage.node.field_combined_paragraphs'
- 'config:field.storage.node.field_edition'
- 'config:field.storage.node.field_liens'
- 'config:field.storage.node.field_mots_clefs'